Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

File Salary.java contains most of a program that takes as input an employee's salary and a rating of the employee's performance and computes the...

File Salary.java contains most of a program that takes as input an employee's salary and a rating of the employee'sperformance and computes the raise for the employee. This is similar to question #3 in the pre-lab, except that theperformance rating here is being entered as a String—the three possible ratings are "Excellent", "Good", and "Poor". As inthe pre-lab, an employee who is rated excellent will receive a 6% raise, one rated good will receive a 4% raise, and one ratedpoor will receive a 1.5% raise.Add the if... else... statements to program Salary to make it run as described above. Note that you will have to use the equalsmethod of the String class (not the relational operator ==) to compare two strings

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question