Question
The parameter is the income for a single person and the return value is the amount of income tax owed. Use the Schedule X
The parameter is the income for a single person and the return value is the amount of income tax owed.
Use the Schedule X – Single table below.
Write a main function to test the function you have written.
You are required to used nested if … else if … else if … else to determine the calculation to use for the tax.
Schedule X — Single
If taxable income is over-- | But not over-- | The tax is: |
$0 | $7,550 | 10% of the amount over $0 |
$7,550 | $30,650 | $755 plus 15% of the amount over 7,550 |
$30,650 | $74,200 | $4,220.00 plus 25% of the amount over 30,650 |
$74,200 | $154,800 | $15,107.50 plus 28% of the amount over 74,200 |
$154,800 | $336,550 | $37,675.50 plus 33% of the amount over 154,800 |
$336,550 | no limit | $97,653.00 plus 35% of the amount over 336,550 |
Step by Step Solution
3.50 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
Required solution include using namespace std double getTaxdoubl...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
Document Format ( 2 attachments)
635e335ecddc1_182301.pdf
180 KBs PDF File
635e335ecddc1_182301.docx
120 KBs Word File
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started