Kuddels
2010-10-17 13:44:19 UTC
if possible could u tell me what is wrong with my code? and how i can fix it?
the code is as follows:
//This program calculates Fed income tax, State tax, Social security tax, Medicare/Madicaid tax, pension plan, health insurance,
import java.util.*;
public class Netpay
{
public static void main(String [] args)
{
Scanner input=new Scanner(System.in);
String name;
System.out.println("The name of employee");
name=input.nextLine();
grosspay=input.nextDouble();
}
}
the error is:
----jGRASP exec: javac -g Netpay.java
Netpay.java:25: cannot find symbol
symbol : variable grosspay
location: class Netpay
grosspay=input.nextDouble();
^
1 error
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.