Re: Please help!
- From: Willem <willem@xxxxxxxx>
- Date: Sat, 27 Oct 2007 09:38:44 +0000 (UTC)
<dharajsmith@xxxxxxxxx> wrote:
)> > Here is the assignment:
)>
)> > You are an accountant setting up a payroll system for a small firm.
)> > Each line of the table in Appendix G (posted below) indicates an
)> > employee's salary range and corresponding base tax amount and tax
)> > percentage. Given a salary amount, the tax is calculated by adding the
)> > base tax for that salary range and the product of percentage of excess
)> > and the amount of salary over the minimum salary for that range.
)> > · Design a program that solves this problem.
)> > · Generate a set of input test values.
)> > · Perform a design walkthrough to verify your design.
) <snip>
)
) There's no specific language. This class is just beginning
) programming. It's called "Fundamentals of programming with algorithms
) and logic."
)
) Is this correct?
)
) <snip>
Malcolm wrote:
) No, I'm afrid you've haven't really understood.
)
) The program needs to read a table of salaries and tax rates from an input
) file.
Where do you see that in the assignment ?
You're making a simple assignment needlessly complex.
It's a 'fundamentals of programming' course, ferchrissake.
) If you are implementing in C++ unfortunately it is hard to give an answer
) because there are so may styles of C++ programming.
)
) Basically you need
)
) #define MAXBRACKET 1000
This is bad programming form in any case. Especially when using C++
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
.
- References:
- Please help!
- From: dharajsmith
- Re: Please help!
- From: user923005
- Re: Please help!
- From: dharajsmith
- Re: Please help!
- From: Malcolm McLean
- Please help!
- Prev by Date: Re: Vector problem? - How can I make the faster?
- Next by Date: Re: Please help!
- Previous by thread: Re: Please help!
- Next by thread: Re: Please help!
- Index(es):
Relevant Pages
|