Question: In C ++ Please Write a program that determines merit increases for faculty members. You will be given more freedom in how to accomplish the
In C ++ Please
Write a program that determines merit increases for faculty members. You will be given more freedom in how to accomplish the tasks in Programming II. Requirements
1. You will have the following functions, getInfo, calcIncrease, printResult, each of which will be called by main.
2. The getInfo function, you will input the faculty performance rating and faculty salary. The performance ratings are: S Superior, G Good, A Average.
3. In the getInfo function, validate the performance rating to make sure S, G or A is entered. If not, ask the user to enter a correct rating. The user should not be able to continue until they enter a correct rating.
4. In the calcIncrease function, determine the faculty raise according to their performance:
S = 0.045 G = 0.025 A = 0
New salary will be salary plus the increase according to the rating.
5. In the printResult function, display the performance rating, salary and new salary. The salary amounts should always be printed with 2 decimal places and decimal points aligned. The performance rating should print the Superior, Good, Average, not the 1 character codes.
6. Submit your program to blackboard as usual. Always include the following lines of comments in your program as well as other internal documentation.
7. When writing your programs, inputs should always have prompts so the user understands what needs to be input and output should always have descriptions as well.
8. Use test data that tests each performance rating. The program should be tested a minimum of 3 times.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
