ISCT Assignment #3 Decisions In this assignment you will write a VB

advertisement
ISCT Assignment #3
Decisions
In this assignment you will write a VB .NET project, a tax calculation. These are described below. You are using nested
decision control statements. Professional format is necessary. Make sure to thoroughly test your program. Also,
remember to comment your code, give descriptive names for your controls and variables, and use proper indentation.
Reminders: good programming techniques are required.
Objectives: Decisions, Select Case Statement, If Statements, Currency format, Radio Buttons, Check Boxes, Group
Boxes
If you have not already had a paying job, when you get your first paycheck, you will notice various taxes are
deducted. The money withheld each pay period is an estimate of what you will owe for the year. At the end of the year,
you will receive an IRP5 that is used to file your taxes with the IRS. This together with other income and deduction will
be used to calculate the exact amount of taxes you will pay the IRS. For this assignment, we are simplifying the process
to allow the user to enter the rand amount that will be taxed and the program should return the tax.
Create a program that calculates the 2010 income taxes for either a single filer or a married filer.
Single Filing Status
[Tax Rate Schedule X, Internal Revenue Code section 1(c)]
* 10% on income between R0 and R8,375
* 15% on the income between R8,375 and R34,000; plus R837.50
* 25% on the income between R34,000 and R82,400; plus R4,681.25
* 28% on the income between R82,400 and R171,850; plus R16,781.25
* 33% on the income between R171,850 and R373,650; plus R41,827.25
* 35% on the income over R373,650; plus R108,421.25
Married Filing Jointly or Qualifying Widow(er) Filing Status
[Tax Rate Schedule Y-1, Internal Revenue Code section 1(a)]
* 10% on the income between R0 and R16,750
* 15% on the income between R16,750 and R68,000; plus R1,675
* 25% on the income between R68,000 and R137,300; plus R9,362.50
* 28% on the income between R137,300 and R209,250; plus R26,687.50
* 33% on the income between R209,250 and R373,650; plus R46,833.50
* 35% on the income over R373,650; plus R101,085.50
For this program, you MUST use both an IF statement and a SELECT CASE statement (suggestions, use the If statement to
determine if the user is married or single and a Case statement to determine the tax).
Download