Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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. oStep 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