Design a program that will read a file of employee records containing employee
number, employee name, hourly pay rate, regular hours worked and overtime hours
worked. The company pays its employees weekly, according to the following rules:
regular pay = regular hours worked x hourly rate of pay
overtime pay = overtime hours worked x hourly rate of pay x 1.5
total pay = regular pay + overtime pay
Your program is to read the input data on each employee’s record and compute and
print the employee’s total pay, on the weekly payroll report. All input data and
calculated amounts are to appear on the report. A total payroll amount and average
payroll amount is to appear at the end of the report.
Comments
Leave a comment