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
Get step-by-step solutions from verified subject matter experts
