Question: Write a Python program that will Read the number of hours worked per week (HW) and Regular Hourly Rate (RHR) of an employee. Determine the

  1. Write a Python program that will
  1. Read the number of hours worked per week (HW) and Regular Hourly Rate (RHR) of an employee.
  2. Determine the Overtime Pay (OTP) if an employee worked for more than 40 hours in a week.

b.1) Calculate the number of hours for overtime (OTH)

b.2) Calculate the Overtime Rate (OTR) as 1.5 of the regular hourly rate.

b.3) Calculate the Overtime Pay (OTP) from OTH and OTR.

  1. Calculate and output Total Salary (TS).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!