I have this program I have to do for my Java class and I'm confused on the prompt of what it is I'm supposed to do. Can someone help explain the chart to me?
In the United States, different tax rates are used depending on the taxpayer’s marital status. There are different tax schedules for single and for married taxpayers. Married taxpayers add their income together and pay taxes on the total. The table gives the tax rate computations, using a simplification of the schedules in effect for the 2008 tax year. A different tax rate applies to each “bracket”. In this schedule, the income in the first bracket is taxed at 10 percent, and the income in the second brackets is taxed at 25 percent. The income limits for each bracket depend on the marital status. Write a program to compute the tax due.
Here's the chart:
Here is the sample run:
Please enter your income: 80000
Please enter s for single, m for married: m
The tax is $10400
Aucun commentaire:
Enregistrer un commentaire