Answered step by step
Verified Expert Solution
Link Copied!

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++image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

Can you please answer this using C# please, thank you!

Answered: 1 week ago

Question

=+Where do you want to live and work?

Answered: 1 week ago

Question

=+1 Where are the best places in the world to live (and work)?

Answered: 1 week ago

Question

=+Are you interested in working on global teams?

Answered: 1 week ago