Help (again) with the payroll problems
I have seen some posts about the payroll program that we students are trying to figure out. I am having some of the same problems which I have been able to sort through, but I am having a problem that I can't make go away!
My error is this:
cannot find symbol
symbol: variable input
Here is the work-in-progress code:
public class PayrollProgram {
/** Creates a new instance of PayrollProgram */
public PayrollProgram() {
}
//main method begins execution of Payroll Program java application
public static void main(String[]args)
{
double number1; // rate
double number2; // hours
double product; // total pay
System.out.println("Please enter your name:");//prompt
String nameOfEmployee=input.nextLine();
System.out.print("Enter rate:$");//prompt
number1 = input.nextDouble(); // read first number
System.out.print( "Enter hours: " ); // prompt
number2 = input.nextDouble(); // read second number
product = number1 * number2; // multiply numbers
System.out.printf("%s makes $%.2f%n",nameOfEmployee,product);
} //end method main
} //end class PayrollProgram
I am stuck and don't know where the opening of the paper bag is!
Thanks!

