Question: C++ language Section 9.4 Learn by Doing Exercises 1) Write a program that asks for an employee's salary and years of service. Use the following

 C++ language Section 9.4 Learn by Doing Exercises 1) Write a

C++ language

Section 9.4 Learn by Doing Exercises 1) Write a program that asks for an employee's salary and years of service. Use the following functions to manipulate the information as described. Please use the included function signatures. void GetInput ( float & salary, int & years_service ); This function prompts for and reads the required salary and years of service. o void CalcRaise ( float & salary, int years_service); . This function changes the salary dependent upon the years of service. If the employee has greater than 10 years of service they will receive a 10% raise. Between 5 and 10 years they will receive a 5% raise. Everybody else will receive a 2% raise. o int CalcBonus ( int years_service); o This function calculates and returns the employee's bonus for the year. They will receive $500 for every 2 years of service. void PrintCalculations (int years_service, float salary, int bonus); This function will display in a clear and professional manner all of the calculated information. o

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!