Question: write a program that opens employee.txt file for input and salary.txt file for output. Read all records form the input file that consists of string

write a program that opens employee.txt file for input and salary.txt file for output. Read all records form the input file that consists of string employeeNum integer totalHours and floating-point salaryPerHour. The program should calculate the total salary for each employee which is based on the totalHours and salaryPerHour. Then, write all of the employees details (including the total salary for each employee) to the output file. Finally calculate the total salary for all employees and append the calculated value to the output file.

---------------------- USING C++ --------------

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!