Right now I'm having a problem getting my program to run, it compiles with no errors. The only previous error I had was that it stated reached end of file while parsing which I think I fixed. Can anyone help me?
import java.util.Scanner;
public class Payyroll2
{
public static void main( String[] args )
{
Scanner input = new Scanner( System.in );
String EmployeeName;
double hourpay; // hourly wages entered
double hoursworked; // number of hours worked entered
double weeklypay; // calculates weekly pay
boolean end = false; // is the input name stop
while (end = false)
{
hourpay = -1; // both initiated to be -1;
hoursworked = -1;
System.out.print("Enter employee name:" ); //Requests employee name
EmployeeName = input.nextLine();
if(EmployeeName.toLowerCase().equals("stop"))
{
end = true;
}
{
System.out.print( "Enter Hourly Wage:" ); //Asks for wages
hourpay = input.nextDouble(); // States wages entered
while (hoursworked < 0) // hourly
System.out.print( "Enter hours worked:" ); // asks for hours
hoursworked = input.nextDouble(); //States hours worked
}
System.out.print("Weekly Salary is: $" + hourpay*hoursworked);
weeklypay=input.nextDouble();
}
} // end method main
} // end