The parameter is the income for a single person and the return value is the amount of
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 – 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 |
Mathematical Applications for the Management Life and Social Sciences
ISBN: 978-1305108042
11th edition
Authors: Ronald J. Harshbarger, James J. Reynolds