CSCI 2000B

Spring 1999

Assignment 6

Date: 2/23/99 Due: 3/2/99 20 points

Write, enter, run, debug, and get working a Visual Basic project to solve the following problem:



You want to help some people do some financial planning taking into account the state income tax. Your program should ask the user for the person's name and annual "adjusted gross income". It should then calculate the total state tax and report the results to the user.

We will assume that all the people are single so will only use the Single Person Tax Rate Schedule:

If the adjusted gross income is The amount of tax is

not over $ 5,000 $ 0

Over ... $ 5,000 ... but not over $ 5,750 $ 0 .... plus 1% of the amount over ... $ 5,000

Over ... $ 5,750 ... but not over $ 7,250 $ 7.50 .... plus 2% of the amount over ... $ 5,750

Over ... $ 7,250 ... but not over $ 8,750 $ 37.50 .... plus 3% of the amount over ... $ 7,250

Over ... $ 8,750 ... but not over $10,250 $ 82.50 .... plus 4% of the amount over ... $ 8,750

Over ... $10,250 ... but not over $12,000 $142.50 .... plus 5% of the amount over ... $10,250

Over ... $12,000 $230.00 .... plus 6% of the amount over ... $12,000



Be sure to provide the user with an easy way to exit the process. You may either get the answer when the adjusted gross income changes or when a button is clicked.



Turn in a listing of your code and a 3.5 inch disk containing the project, form, and EXE file (MAKE filename.EXE under FILES). Write your name on the disk and the name of the EXE file. All assignments are due at the beginning of class with late assignments reduced by 10% per day, up to a maximum reduction of 50%.