Question: In Write a program that determines the raise and the new salary for an employee. The input to the !!!!!program includes the current annual salary

 In Write a program that determines the raise and the new

In Write a program that determines the raise and the new salary for an employee. The input to the !!!!!program includes the current annual salary for the employee and a number indicating the performance rating (l-excellent, 2-good, and 3-poor). An employee with a rating of 1 will receive a 6% raise, an employee with a rating of 2 will receive a 4% raise, and the one with a rating of 3 will receive a 1.5% raise. A sample run is: Enter the current salary: 1000 Enter the performance rating (1=excellent, 2=good, and 3=poor): 2 Your current salary is: 1000 Your annual raise is: 40 You new salary is 1040 Then Modify the program above so that the performance rating is being entered as a String the three possible ratings are "Excellent", "Good", and "Poor". An employee who is rated excellent will receive a 6% raise, the one rated good will receive a 4% raise, and the one rated poor will receive a 1.5% raise

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!