Question: = ==A--. : Normal No Spac Heading 1 Hea Paragraph 2. Computing Tax Problem Description: The United States federal personal income tax is calculated based
= ==A--. : Normal No Spac Heading 1 Hea Paragraph 2. Computing Tax Problem Description: The United States federal personal income tax is calculated based on filing status and taxable income. There are four filing statuses: single filers, arried filing jointly, zarried filing separately, and head of household. The tax rates vary every year. Table 3.2 shows the rates for 2009. It you are, ssy, ,ingle with a taxable income of 510,000, te first8,350 i taxed at 10% and the other 41, eso taxed at 151. So, your tax 41,082. s Table 1 2009 U.S. Federal Personal Tax Rates Tas Rade 10% 0-$16,700 16,701-567,900 33,951-38,20 67,901-5137,50 0-$8,350 8.351-333,950 0-$8350 351-533,90 5-$11950 11951-545,500 33,951-368 525$45,0-$11,40 851-$171,350 $137,051-208, 8 525-5304 42 $117,451-00 21% 372 911+ 372,953+ You are to write a program to compute personal income tax. Your program should prompt the user to enter the fling status and taxable incoese and compute the tax. Enter 0 for single filers, for married filing jointly, 2 for married filing separately, and 3 for head of household Here are sample runs of the program Sample 1 Enter the filing status Enter tbe taxable income:100000 Tax is 21720 Enter the tiling scatuss Tax is 76932.87 Sample 3 300339 Enter the filing tatus: 2 Tax is 29665.5 Sample 4: Enter the taxable income: 4545402 Please sabesst the source code and bytecode
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
