Question: Write a Java program that computes the amount of income tax that a person must pay, depending upon salary. Income tax should be calculated for
Write a Java program that computes the amount of income tax that a person must pay, depending upon salary. Income tax should be calculated for each portion of income in each range. For example, a user who earns $25,000.0 pays 10% on the first $7,825.0 and 15% on the remaining $17,175.0. Your program should use the following income tax guidelines for income tax calculations:
Income Ranges Tax Rate
$7,825.00 10%
$7,825.00 - 31,850.00 15%
$31,850.00 - 77,100.00 25%
$77,100.00 - 160,850.00 28%
$160,850.00 - 349,700.00 33%
Over $349,700.00 35%
You need to use a nested-if statement to help make decisions for this program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
