Question: Please have it written in Python. Write a program called EmployeePay.py. The program will have a main function and a sub function called pay(). The

 Please have it written in Python. Write a program called EmployeePay.py.

Please have it written in Python.

Write a program called EmployeePay.py. The program will have a main function and a sub function called pay(). The function pay() takes as input two arguments: an hourly wage (hourlyWage) and the number of hours an employee worked (hoursWorked) in the last week. Your function should compute and return the employee's pay. Any hours worked beyond 40 is overtime and should be paid at 1.5 times the regular hourly wage. In the main method Receive number of hours worked (integer) Receive hourly wage (float) Call function pay() Print the employee pay Expected Output Enter the number of hours worked: 10 Enter hourly wage: 10.0 Employee Pay is $100.0 Enter the number of hours worked: 45 Enter hourly wage: 10.0 Employee Pay is $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!