Question: using PYTHON Implement function pay() that takes as input two arguments: an hourly wage and the number of hours an employee worked in the last
using PYTHON Implement function pay() that takes as input two arguments: an hourly wage and the number of hours an employee worked in the last week. Your function should compute and return the employees pay. Any hours worked beyond 40 is overtime and should be paid at 1.5 times the regular hourly wage.
>>> pay(10, 35)
350
>>> pay(10, 45)
475.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
