In the second coding step, define the following three variables:
wage
regularHours
overtimeHours
Prompt the user for input in the following sequence:
Enter the wage: $
Enter the regular hours:
Enter the overtime hours:
Calculate Total Pay:
In the third coding step, define a variable named totalPay to calculate the employee’s total weekly pay. This is where you’ll perform the necessary calculations using the variables created in the previous step.
In the fourth coding step, print the employee’s total weekly pay to the terminal.