Question: Implement the following function in the PyDev module functions.py and test it from a PyDev module named t87.py def get pay (hourly rate, hours_worked): Calculates
Implement the following function in the PyDev module functions.py and test it from a PyDev module named t87.py def get pay (hourly rate, hours_worked): Calculates an employee's net wage given hours and pay. Each employee is paid 1.5 times their regular hourly rate for all hours over 40. A tax amount of 3.625 percent of gross salary is deducted. Use: net payment get_pay (hourly rate, hours_worked) Parameters: hourly rate hours worked Returns net payment hourly rate of pay (float) total hours worked (float) description (float) Sample testing Employee ID: 123 Hourly wage rate: 45 Hours worked: 46 Net payment for employee 123: $2,125.07 Employee ID: 124 Hourly wage rate: 30 Hour's worked 46 Net payment for employee 124: $1,416.71 Test functions.py Choose File No file chosen Submit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
