Question: 12. Implement the following function in the PyDev module functions.py and test it from a PyDev module named t12.py def pay raise(status, years, salary): Calculates

 12. Implement the following function in the PyDev module functions.py and

12. Implement the following function in the PyDev module functions.py and test it from a PyDev module named t12.py def pay raise(status, years, salary): Calculates pay raises for employees. Pay raises are based on: status: Full Time ('For Part Time (P) and years of service Raises are: 5% for full time less than or equal to 10 years service 1.5% for full time less than 4 years service 3% for part time greater than 10 years service 1% for part time less than 4 years service 2% for all others Use: new_salary - pay_raise(status, years, salary) Parameters: status employment type (str. 'F' or 'p') years number of years employed (int > 0) salary current salary (float > 0) Returns: new_Salary - employee's new salary (float). Sample testing 17 Status: E Years: 2 Salary: 25eee New Salary: $25,375.00 Test functions.py: Choose File No file chosen Submit

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!