Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The United States federal personal income tax is calculated based on filing status and taxable income. There are four filing statuses: single filers, married
The United States federal personal income tax is calculated based on filing status and taxable income. There are four filing statuses: single filers, married filing jointly, married filing separately, and head of household. The tax rates vary every year. The table shows the rates for 2009. If you are, say, single with a taxable income of $10,000, the first $8,350 is taxed at 10% and the remaining $1,650 is taxed at 15%. So, your tax is $1,082.5. 2009 U.S. Federal Personal Tax Rates Marginal Single $0-$8,350 $8,351-$33,950 $33,951 $82,250 Tax Rate 10% 15% 25% 28% 33% $82,251-$171,550 $171,551 $372,950 35% $372,951+ Married Filing Jointly or Qualified Widow(er) $0 $16,700 $16,701 $67.900 $67.901 $137,050 $137,051 $208,850 $208,851 $372.950 $372,951- Married Filing Separately $0-$8,350 Head of Household $0 $11.950 $8,351 $33.950 $11.951 $45,500 $33.951 $68,525 $45,501 $117.450 $68,525 $104,426 $186,475 $186,476- $104.425 $117,451 $190.200 $190,201 $372,950 $372,951- You are to write a program to compute personal income tax. Your program should prompt the user to enter the filing status and taxable income and compute the tax. Enter 0 for single filers, 1 for married filing jointly, 2 for married filing separately, and 3 for head of household. Here are sample runs of the program: Analysis: (Describe the problem including input and output in your own words.) Design: (Describe the major steps for solving the problem.) Testing: (Describe how you test this program)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started