Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Write a program that computes the income tax for an individual. The program should ask the user
- to enter the total taxable income of the year. The program then uses the tax bracket (as shown below) to
- calculate the tax amount:
- 10% on taxable income from $0 to $9,325, plus
- 15% on taxable income over $9,325 to $37,950, plus
- 25% on taxable income over $37,950 to $91,900, plus
- 28% on taxable income over $91,900 to $191,650, plus
- 33% on taxable income over $191,650 to $416,700, plus
- 35% on taxable income over $416,700 to $418,400, plus
- 39.60% on taxable income over $418,400
- (1) The program should display the total tax due to the user.
- (2) The program should show an error message if the user enters a negative number.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement