Hello, I really need help with my payroll program. I just need to input the name, wage, hours, and then get an output with the results. The output needs to show employee name, rate, wage, and total pay. here is what I have written so far. Please help! I am getting some format.double error
import java.util.Scanner;
public class Payroll1
{
//bla bla
public static void main (String args[] )
{
//main execution
Scanner input = new Scanner( System.in );
String empName;
double wage;
double hours;
double pay;
System.out.print( "What is the name of the employee?:" );
empName = input.nextLine();
System.out.print( "What is the hourly rate?");
wage = input.nextDouble();
System.out.print( "How many hours?");
hours = input.nextDouble();
pay = hours * wage;
System.out.print( empName );
System.out.printf( "The total pay is %d\n",pay);
}
}