Compute regular pay as any hours worked up to and including


(Program) a. Create a text file named pay.dat containing the following data (without the headings):

1768_ff51fcea-af61-4495-9f67-38a0d817de70.png

b. Write a C++ program that uses the information in the file created in Exercise 10a to produce the following pay report for each employee:

648_250312ed-44a9-43c3-bf9c-bf73c126af3f.png

Compute regular pay as any hours worked up to and including 40 hours multiplied by the pay rate. Compute overtime pay as any hours worked above 40 hours at a pay rate of 1.5 multiplied by the regular rate. The gross pay is the sum of regular and overtime pay. At the end of the report, the program should display the totals of the regular, overtime, and gross pay columns.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Compute regular pay as any hours worked up to and including
Reference No:- TGS02192117

Expected delivery within 24 Hours