CS 230 Fall 2006                                                                Assignment 4 –More Complicated Branching                              100 points

 

Assigned: 09/27/2006

Due: 10/04/2006 at the start of class

 

Pre-Lab (Do Before Lab):  Bring materials – a way to save a copy for you and a copy to turn in. Plan out tasks, objects, and events needed for program. Plan out major pseudocode. This program has complicated logic – think about it BEFORE lab!!!

 

Main Assignment:

Write a program that calculates the amount of tax that a taxpayer should have paid. Get from the user for their net income (this is income after all deductions and exemptions etc – we’ll save that stuff for a more advanced program) and the amount of tax they have already had withheld from their paycheck. Then according to the simplified (for your benefit) tax schedule shown below, calculate the amount of tax, and the amount of refund or the amount of tax still due. 

 

Tax Schedule (We are only handling Single taxpayers):

Income

Tax Rate

First $20,000 in net income

12%

Next $30,000 in net income

25%

Remaining Income

35%

 

Provide capabilities to calculate, clear the text boxes to start again, and to exit.

 

Hand in:

 

Miscellaneous: