So i am a freshmen in college and i have to get this program written within the next 12hrs for extra credit. I can't wrap my head around how to get started mainly how to get a program to read a txt file and output a new one.
And this is to be written in C++.
This right here is the question
There are three employees in a company and they are slated to get a pay increase this year. You are given a file, named employeeData.txt, that has the following data inside.
Haptal Felicity 75124.87 5.3
Beckinsale Ford 49546.56 6.7
Longoria Dempsey 85700.50 4.9
Each line has the employee’s last name, first name, current salary, and the percent for their pay increase.
For example, the first line of the data is the first employee and their last name is Haptal, their first name is Felicity, their salary is 75124.87, and their pay increase is 5.3 percent.
Write a program that reads data from the specified file, employeeData.txt, and stores the output in the file employeeRaise.dat. For each employee, the data stored in the output file must be of this form:
firstName lastName updatedSalary. Be sure to format the output of decimal numbers to two decimal places.