Design a program that will read a file of employee records containing employee number, employee name, hourly pay rate, and regular hours worked and overtime hours worked. The company pays its employees weekly, according to the following rules:
Regular pay = regular hours worked * hourly rate of pay
Overtime pay = overtime hours worked * hourly rate of pay * 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 is to appear at the end of the report.
Your solution must include a defining diagram, a pseudo code algorithm, a desk check of the algorithm