Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions