Re: Please help!
- From: rossum <rossum48@xxxxxxxxxxxx>
- Date: Mon, 29 Oct 2007 18:09:46 +0000
On Fri, 26 Oct 2007 20:34:15 -0700, dharajsmith@xxxxxxxxx wrote:
I am a student at Axia College. I have an assignment due tonight,One of the basic things in almost any job is planning your time. If
that I do not have a clue how to do. I am not going into Programming,
but this class is a required class to go on to the next classes in
IT. Can someone please help.
your assignemnt is really due "tonight" then you have failed to plan
your time correctly.
How long have you known that you don't know how to complete this
assignment? Have you even looked at it? If you had then you would
have had time to ask your instructor about the parts you did not
understand. Next time you will know to do this.
Here is the assignment:Do you understand the problem description? Appendix G includes a
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.
small example or you could ask your instructor if you have
difficulties.
· Design a program that solves this problem.It says "design", and not "write" or "code", so I assume that you are
allowed to use pseudocode, flowcharting, UML diagrams or whatever your
instructor has shown you for designing programs.
· Generate a set of input test values.Test values can include random numbers, but in general should not
always be random. You should check important boundary points in your
design. You should also check invalid input.
Having a quick look at Appendix G, you could use:
-0.01, 0.00, 0.01, 1234.56
1499.99, 1500.00, 1500.01, 2345.67
etc.
to check the boundaries: one just below each boundary, one on the
boundary, one just above the boundary and one in the middle of the
range.
For invalid input try:
15000.01
1.23e+34
1,567.89
$3245.87
1345.3456
10/11/1968
Hiram K Sluggenheimer III
and anything else you can think of.
· Perform a design walkthrough to verify your design.Take each test case and calculate by hand what the expected answer
should be. Not run each test case through your design, again by hand,
and check that it gives the expected answer. If you get a mismatch
then double check you expected answer as you might have made a mistake
before going back and changing your design.
rossum
Appendix G:
Sequential and Selection Process Control Structure
In the following example, the second line of the table specifies that
tax due on a salary of $2000.00 is $225.00 plus 16% of excess salary
over $1500.00 (that is, 16% of $500.00). Therefore, the total tax is
$225.00 + $80.00, or $305.00.
Salary Range in Dollars Base Tax in Dollars Percentage of Excess
1 0.00-1,499.99 0.00 15 %
2 1,500.00-2,999.99 225.00 16 %
3 3,000.00-4,999.99 465.00 18 %
4 5,000.00-7,999.99 825.00 20 %
5 8,000.00-14,999.99 1425.00 25 %
.
- References:
- Please help!
- From: dharajsmith
- Please help!
- Prev by Date: Re: Please help!
- Next by Date: Re: Urgent Recurrence Problem, Please Help !
- Previous by thread: Re: Please help!
- Next by thread: Vector problem? - How can I make the faster?
- Index(es):
Relevant Pages
|