Problem:  read in values from an employee's time sheet and print out the weekely pay due to the employee.  Values are regular hours worked, overtime hours worked, hourly wage rate.  It is assumed overtime is paid at the rate of time and a half.

 

1.  input regular hours

2.  input overtime hours

3.  input wage rate

4.  weekly pay = regular hours * wage rate + overtime hours * wage rate * 1.5

5.  output weekly pay

 

1.1  output " enter regular hours "

1.2   input regular hours

2.1  output " enter overtime hours"

2.2  input overtime hours

3.1  output "enter hourly wage rate"

3.2  input wage rate

 

5.1  output "weekly pay is " weeklypay