//program to taxreturn
import java.util.Scanner;
public class TaxReturn
{
public static void main(String[] args)
{
int filingStatus;
double personalIncome;
double tax=0;
//Declare Scanner
Scanner input = new Scanner(System.in);
System.out.println ("1 - Single");
System.out.println ("2 - Married Filing Jointly");
System.out.println ("3 - Married Filing Separately");
System.out.println ("4 - Head of Household");
System.out.println();
System.out.print("Please enter your filing status : ");
filingStatus = input.nextInt();
System.out.print("Please enter your personal income : ");
personalIncome = input.nextInt();
switch(filingStatus)
{
case 1:
if(personalIncome > 372950)
{
tax = tax+(33/100)*372950 + ((personalIncome-372950)*(35/100));
}
else if(personalIncome>171550 && personalIncome<= 372950)
{
tax = tax+(28/100)*171550 + ((personalIncome-171550)*(33/100));
}
else if(personalIncome>82250 && personalIncome<= 171550)
{
tax = tax+(25/100)*82250 + ((personalIncome-82250)*(28/100));
}
else if(personalIncome>33950 && personalIncome<= 82250)
{
tax = tax+(15/00)*33950 + ((personalIncome-33950)*(25/100));
}
else if(personalIncome>8350 && personalIncome<=33950)
{
tax = tax+(10/100)*8350 + ((personalIncome-8350)*(15/100));
}
else
{
tax = tax + (10/100)*personalIncome;
}
break;
case 2:
if(personalIncome >372950)
tax = tax + (33/100)*372950 + ((personalIncome-372950)*(35/100));
else if(personalIncome>208850 && personalIncome<= 372950)
tax = tax + (28/100)*208850 + ((personalIncome-208850)*(33/100));
else if(personalIncome>137050 && personalIncome<= 208850)
tax = (25/100)*137050 + ((personalIncome-137050)*(28/100));
else if(personalIncome>67900 && personalIncome<= 137050)
tax = tax + (15/00)*67900 + ((personalIncome-67900)*(25/100));
else if(personalIncome>16700 && personalIncome<=67900)
tax = tax + (10/100)*16700 + ((personalIncome-16700)*(15/100));
else
tax = tax + (10/100)*personalIncome;
break;
case 3:
if(personalIncome > 186475)
tax = tax + (33/100)*186475 + ((personalIncome-186475)*(35/100));
else if(personalIncome>104426 && personalIncome<= 186475)
tax = tax + (28/100)*104426 + ((personalIncome-104426)*(33/100));
else if(personalIncome>68526 && personalIncome<= 104425)
tax = tax + (25/100)*68526 + ((personalIncome-68526)*(28/100));
else if(personalIncome>33950 && personalIncome<= 68525)
tax = tax + (15/00)*33950 + ((personalIncome-33950)*(25/100));
else if(personalIncome>8350 && personalIncome<=33950)
tax = tax + (10/100)*8350 + ((personalIncome-8350)*(15/100));
else
tax = tax + (10/100)*personalIncome;
break;
case 4:
if(personalIncome > 372950)
tax = tax + (33/100)*372950 + ((personalIncome-372950)*(35/100));
else if(personalIncome>190200 && personalIncome<= 372950)
tax = tax + (28/100)*190200 + ((personalIncome-190200)*(33/100));
else if(personalIncome>117450 && personalIncome<= 190200)
tax = tax + (25/100)*117450 + ((personalIncome-117450)*(28/100));
else if(personalIncome>45500 && personalIncome<= 117450)
tax = tax + (15/00)*45500 + ((personalIncome-45500)*(25/100));
else if(personalIncome>11950 && personalIncome<=45500)
tax = tax + (10/100)*11950 + ((personalIncome-11950)*(15/100));
else
tax = tax + (10/100)*personalIncome;
break;
default:
System.out.print("Invalid entry");
break;
} //End switch
//Display the output
if (filingStatus >= 1 && filingStatus<=4)
{
System.out.printf("The tax is %f", tax);
}
else
System.out.println("Invalid entry");
}
}
when I run the program I get my tax return 0.000.......I don't know what is the problem
Could someone help me please?