Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in C++ applyRaise: The second function is named applyRaise. It will have three arguments. The first argument is the binary file which is an fstream.
in C++
applyRaise: The second function is named applyRaise. It will have three arguments. The first argument is the binary file which is an fstream. The second argument is the id of the employee who is getting the raise. The third argument is the amount of raise the employee gets. This function is a valued function and will return true if the employee id was found and false if the employee id was not found. If the employee id is found, you will need to add the amount of the raise to the salary field and then write the new structure of data out to the file over the top of the old data. Remember to truncate the salary (look at math library). This function will return true if the raise was given to an employee and false if it was not. You may not output the success or error message in this function. applyRaise: The second function is named applyRaise. It will have three arguments. The first argument is the binary file which is an fstream. The second argument is the id of the employee who is getting the raise. The third argument is the amount of raise the employee gets. This function is a valued function and will return true if the employee id was found and false if the employee id was not found. If the employee id is found, you will need to add the amount of the raise to the salary field and then write the new structure of data out to the file over the top of the old data. Remember to truncate the salary (look at math library). This function will return true if the raise was given to an employee and false if it was not. You may not output the success or error message in this functionStep 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