Question
write the program in C++ Write a program to process employee pay increases. The data will be in a file with the following format: Employee_name
write the program in C++
Write a program to process employee pay increases. The data will be in a file with the following format:
Employee_name current_salary percent_increase
Here is a sample file:
Miller,Andrew 63700 5.5
Green,Shelia 55025.75 6.2
Note that there must be NO SPACES in the employee name. You will be able to read using >>.
Your program will ask for the name of the file to process, and the name of the output file. Read the employee name, current salary, and increase. Calculate the new pay and write to an output file with employee name and new salary. Format the numbers to display 2 decimal places. Your output file should be formatted as shown below:
(output for the input file shown above)
Salary Increase Report
Employee New Salary
Miller,Andrew $67203.50
Green,Shelia $58437.35
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