I am almost complete this assignment. But I am stuck with line 108 error. Could someone please help me out on this?
import java.io.*;
public class Assignment4
{
public static void main(String[]args) throws IOException
{
//delcare and construct variables
int marStatus, status, gross, earn, excess, annual;
double fica, medicare, net;
BufferedReader dataIn= new BufferedReader(new InputStreamReader(System.in));
//print prompts and get input
System.out.print("Enter your relationship status (1)Single, or (2)Married. ");
marStatus = Integer.parseInt(dataIn.readLine());
status = marStatus;
System.out.print("Enter your Annual Salary: $");
gross = Integer.parseInt(dataIn.readLine());
annual = gross;
///////////////////////////////////////////////////////////////////////////////////////
System.out.println("Weekly Gross: $" + (annual/52));
earn = annual/52;
System.out.println("FICA (Social Security Tax): $" + (earn * .062));
fica = earn * .062;
System.out.println("Medicare Tax: $" + (earn *.0145));
medicare = earn *.0145;
///////////////////////////////////////////////////////////////////////////////////////
{
// for single
if (status==1)
{
if (earn <= 116)
{
System.out.println("The amount to withhold is $0.0");
}
else if (earn>=116 && earn<=200)
{
excess = (earn-116);
System.out.println("Excess earnings over wage bracket : $" + (excess));
System.out.println("Federal Income Tax :$" + (excess * .10));
net = (excess * .10);
}
else if (earn>=200 && earn<=693)
{
excess = (earn-200);
System.out.println("Excess earnings over wage bracket : $" + (excess));
System.out.println("Federal Income Tax :$" + (8.40+(excess*.15)));
net = (8.40+(excess*.15));
}
else if (earn>=639 && earn<=1302)
{
excess = (earn-639);
System.out.println("Excess earnings over wage bracket : $" + (excess));
System.out.println("Federal Income Tax :$" + (82.35+(excess*.25)));
net = (82.35+(excess*.25));
}
else if (earn>=1302)
{
excess = (earn-1302);
System.out.println("Excess earnings over wage bracket : $" + (excess));
System.out.println("Federal Income Tax :$" + (234.50+(excess*.27)));
net = (234.50+(excess*.27));
}
}
// for married
if (status==2)
{
if (earn <= 264)
{
System.out.println("The amount to withhold is $0.0");
}
else if (earn>=264 && earn<=471)
{
excess = (earn-264);
System.out.println("Excess earnings over wage bracket : $" + (excess));
System.out.println("Federal Income Tax :$" + (excess * .10));
net = (excess * .10);
}
else if (earn>=471 && earn<=1457)
{
excess = (earn-471);
System.out.println("Excess earnings over wage bracket : $" + (excess));
System.out.println("Federal Income Tax :$" + (20.70+(excess*.15)));
net = (20.70+(excess*.15));
}
else if (earn>=1457 && earn<=1809)
{
excess = (earn-1457);
System.out.println("Excess earnings over wage bracket : $" + (excess));
System.out.println("Federal Income Tax :$" + (168.60+(excess*.25)));
net = (168.60+(excess*.25));
}
else if (earn>=1809)
{
excess = (earn-1809);
System.out.println("Excess earnings over wage bracket : $" + (excess));
System.out.println("Federal Income Tax :$" + (256.60+(excess*.27)));
net = (256.60+(excess*.27));
}
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////
System.out.println("Net Paycheck: $" + (earn-fica-medicare-net));
}
}