Question: Python 3 10:52 PM | 3 | (46) Assignment Details 6202-COSC-2436-Programming Fundamentals III.... 4. Write a program that will calculate the net pay of an

 Python 3 10:52 PM | 3 | (46) Assignment Details 6202-COSC-2436-Programming

Python 3

10:52 PM | 3 | (46) Assignment Details 6202-COSC-2436-Programming Fundamentals III.... 4. Write a program that will calculate the net pay of an employee. The steps for calculating the net pay is: in functions A function that gets the employee's hourly pay rate A function that gets the number of hours worked A function that calculates the employee's gross pay A function that calculates the overtime pay A function that calculates the withholdings for taxes and benefits A function that calculates the net pay A function that prints the paycheck The calls of each functions happens as follows: Regular rate = 10.00 Overtime rate = regular rate * 1.5 Hoursworked = 50 Regular pay = 40 *regular rate Overtime pay = (hoursworked - 40) * (regular rate * overtime rate) Gross pay = Regular Pay + Overtime Pay (if any) Withholdings = (Tax = 10% of the gross Pay ) + (benefits = retirement = 6% of the gross pay) Net Pay = Gross Pay - Withholdings Submit Assignment

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!