Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The original U.S. income tax of 1913 was quite simple. The tax was 1 percent on

ID: 3625539 • Letter: T

Question

The original U.S. income tax of 1913 was quite simple. The tax was

1 percent on the first $50,000.

2 percent on the amount over $50,000 up to $75,000.

3 percent on the amount over $75,000 up to $100,000.

4 percent on the amount over $100,000 up to $250,000.

5 percent on the amount over $250,000 up to $500,000.

6 percent on the amount over $500,000.

There was no separate schedule for single or married taxpayers. Write a program that computes the income tax according to this schedule.
Here is a sample program run:

Please enter your income:
40000
Tax: 400.0
Use the following class as your main class:

import java.util.Scanner;

/**
This program calculates taxes based on the original
U.S. income tax schedule in 1913.
*/
public class TaxCalculator
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);

System.out.println("Please enter your income: ");
double income = in.nextDouble();

TaxReturn aTaxReturn = new TaxReturn(income);

System.out.println("Tax: " + aTaxReturn.getTax());
}
}
You need to supply the following class in your solution:

TaxReturn

Explanation / Answer

please rate - thanks

class TaxReturn
{private double income;

public TaxReturn(double i)
{income=i;
}
public double getTax()
{double tax=0;
if(income<=50000)
    return income*.01;
if(income<=75000)
    return 50000*.01+(income-50000)*.02;
if(income<=100000)
    return 50000*.01+25000*.02+(income-75000)*.03;
if(income<=250000)
    return 50000*.01+25000*.02+25000*.03+(income-100000)*.04;   
if(income<=500000)
    return 50000*.01+25000*.02+25000*.03+150000*.04+(income-250000)*.05;
return 50000*.01+25000*.02+25000*.03+150000*.04+250000*.05+(income-500000)*.06;   
}
}       

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote