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!

[1296 byte] By [4zlimita] at [2007-11-27 4:56:38]
# 1
String nameOfEmployee=input.nextLine();Do you have a variable called input that you have declared somewhere? I can't find it and neither can the compiler, hence the error.
floundera at 2007-7-12 10:11:50 > top of Java-index,Java Essentials,New To Java...
# 2
Thank you very much for your help. I received no errors back!
4zlimita at 2007-7-12 10:11:50 > top of Java-index,Java Essentials,New To Java...
# 3
You're wlecome. Note in future when posting code, highlight it and click the code button above message box. This will retain the formatting and make it easier to read.
floundera at 2007-7-12 10:11:50 > top of Java-index,Java Essentials,New To Java...