Question
Write a program that determines merit increases for faculty members. Requirements 1. You will have the following functions, getInfo, calcIncrease, printResult, each of which will
Write a program that determines merit increases for faculty members.
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.
Step 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