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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started