Question: Then compile the program and list what commands you use to compile and run. public class Payroll{ public static void main(String[] args {
Then compile the program and list what commands you use to compile and run.
public class Payroll{
public static void main(String[] args {
double hrlyWage, hrsWorked, salary;
hrlyWage = 15.5;
HrsWorked = 20;
salary = hrlyWage * hrsWorked;
System.out.print("Salary: $ + salary);
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
