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
- 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 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.
- Calculate and output Total Salary (TS).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
