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

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!