(Solved) : Input Income 510 000 Result 20850 Class Taxreturn Used Determine Tax Amount Person Origina Q44005804 . . .

An input (income) of $510,000 should result in 20850
/**
Class TaxReturn is used to determine the tax amount for aperson.
The original U.S. income tax table of 1913 is applied.
*/
/**
* Code for E5.18
* @author
*/
public class TaxReturn
{
private static final double RATE1 = 0.06;
private static final double RATE2 = 0.05;
private static final double RATE3 = 0.04;
private static final double RATE4 = 0.03;
private static final double RATE5 = 0.02;
private static final double RATE6 = 0.01;
private static final double BRACKET1 = 500000;
private static final double BRACKET2 = 250000;
private static final double BRACKET3 = 100000;
private static final double BRACKET4 = 75000;
private static final double BRACKET5 = 50000;
private double income;
/**
Constructs a TaxReturn object for a given income.
@param anIncome the taxpayer income
*/
public TaxReturn(double anIncome)
{
income = anIncome;
}
/**
Method used to calculate the tax.
@return the tax amount
*/
public double getTax()
{
double tax = 0;
// Your work starts here. Do not change the codes above.
// Your work ends here. Do not change the codes below.
return tax;
}
}
1. ES. 18 The original U.S. income tax of 1913 was quite simple. The tax was . I percent on the first $50,000. 2 percent on the amount over $50.000 up to $75,000. • 3 percent on the round over $75,000 up to $100,000. • 4 percent on the moun over $100,000 up to $250.000 • 5 percent on the account over $250,000 up to $500.000, • 6 percent on the count over $500,000 There was no separate schicdule for single or inamied taxpayers. Write a prograin that computes the income tax according to this schedule. Show transcribed image text 1. ES. 18 The original U.S. income tax of 1913 was quite simple. The tax was . I percent on the first $50,000. 2 percent on the amount over $50.000 up to $75,000. • 3 percent on the round over $75,000 up to $100,000. • 4 percent on the moun over $100,000 up to $250.000 • 5 percent on the account over $250,000 up to $500.000, • 6 percent on the count over $500,000 There was no separate schicdule for single or inamied taxpayers. Write a prograin that computes the income tax according to this schedule.
Expert Answer
Answer to An input (income) of $510,000 should result in 20850 /** Class TaxReturn is used to determine the tax amount for a perso…
OR