Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program called TaxCalculator.java that Prompts the user for their taxable income and whether their tax status is single or married. You can assume
Write a program called TaxCalculator.java that
- Prompts the user for their taxable income and whether their tax status is single or married. You can assume a perfect user. Read income as an integer.
- Calculates their income tax according to the table below.
- Outputs their tax amount.
If your tax status is Single and the taxable income is over | but not over | the tax is | of the amount over |
$0 | $8,000 | 10% | $0 |
$8,000 | $32,000 | $800 + 15% | $8,000 |
$32,000 | $4,400 + 25% | $32,000 | |
If your tax status is Married and the taxable income is over | but not over | the tax is | of the amount over |
$0 | $16,000 | 10% | $0 |
$16,000 | $64,000 | $1,600 +15% | $16,000 |
$64,000 | $8,800 + 25% | $64,000 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started