Question: 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++in C++ applyRaise: The second function is named applyRaise. It will have

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 function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!