Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Write a program that computes the income tax for an individual. The program should ask the user
  2. to enter the total taxable income of the year. The program then uses the tax bracket (as shown below) to
  3. calculate the tax amount:
  4. 10% on taxable income from $0 to $9,325, plus
  5. 15% on taxable income over $9,325 to $37,950, plus
  6. 25% on taxable income over $37,950 to $91,900, plus
  7. 28% on taxable income over $91,900 to $191,650, plus
  8. 33% on taxable income over $191,650 to $416,700, plus
  9. 35% on taxable income over $416,700 to $418,400, plus
  10. 39.60% on taxable income over $418,400
  11. (1) The program should display the total tax due to the user.
  12. (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