Question: Design a modular program in Python to process payroll for all hourly paid employees and save all user entered data and processed results to a

Design a modular program in Python to process payroll for all hourly paid employees and save all user entered data and processed results to a txt file.
The program should allow user to enter each employee's ID, name, hours worked, and hourly pay rate. And then calculate gross pay with overtime hours (hours beyond 40) paid 50% more. And then the program should display a pay statement for each employee. At the end, the program should display total number of employees, total number of hours worked by all employees, and total gross pay as well.
The program should contain the following functions: main(), getEmployeeInfo(), calcGrossPay(hours, rate), displayPayStatement(empID, empName, hoursWorked, hourlyPayRate, grossPay), and savePayStatement(empID, empName, hoursWorked, hourlyPayRate, grossPay).
The get EmployeeInfo() should return employee id, name, hours worked, and hourly pay rate.

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 Programming Questions!