IUP Computer Science
CO 300 Spring 1998
Write an assembly language program to compute a person's federal income tax based on the Wolfe Simplified Tax Rules. Your program should repeatedly prompt for three pieces of information: Name, Earned Income (in whole dollars), and Number of Exemptions. It should then compute the Taxable Income using the formula:
Taxable = Earned - 2650 * Exemptions - Standardwhere Standard is the Standard Deduction - this value is 4100 for single taxpayers and 6900 for everyone else (single taxpayers have only one exemption).
To calculate the income tax, your program must use the tax rate schedule which is based on taxable income as follows (all amounts in whole dollars):
If Taxable Income is Then, the Plus of amount
Over But not over Income Tax is over
0 41,200 0 15% 0
41,200 99,600 6,180 28% 41,200
99,600 151,750 22,532 31% 99,600
151,750 271,050 36,699 36% 151,750
271,050 --- 81,647 39.6% 271,050
Make sure your calculation is in WHOLE DOLLARS; do NOT attempt to do floating point arithmetic to compute the tax.
After calculating the income tax, your program should display a line that shows the person's name, taxable income, and income tax with reasonable formatting and sufficient text to identify the values. The program should then prompt for and read in the information for another taxpayer and calculate that person's income tax. This cycle should continue to happen until only Enter is entered for the taxpayer name. You may assume that NO taxpayer will have taxable income greater than $2,000,000. Here is an example tax computation for a taxpayer with $100,000 in earned income and 8 exemptions:
Taxable income = 100000 - 2650 * 8 - 6900 = 71900 Income tax = 6180 + .28 * (71900 - 41200) = 14776Hand in an assembly listing (.LIS file) of your commented program. Also, hand in a CARBON captured execution of the program in which it calculates the income tax for taxpayers with these combination of earnings and exemptions:
$24000 1 $350000 3 $126000 4 $8500 2 $54000 1You make up the names of the taxpayers. Both of these printouts should be on green bar paper.