Question: Write a program that uses the Payroll class you defined in 8.13a. The program has an array of seven PayRoll objects. The program should read

Write a program that uses the Payroll class you defined in 8.13a. The program has an array of seven PayRoll objects. The program should read the number of hours and the hourly pay rate for up to seven employees from a file named payroll.dat and call class functions to store this information in the appropriate objects. It should then call a class function, once for each object, to return the employees gross pay. The gross pay values should be printed, each on a line by itself. EXAMPLE: if the payroll.dat files contains:

35 1200 40 1150 

then the output of the program would be:

$420.00 $488.75 

Note: Do not define the Payroll class here-- just write the program that uses it.

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!