Using a switch Statement
In this lab, you complete a prewritten Java program that calculates an employee's end-of-year bonus and prints the employee's name, yearly salary, performance rating, and bonus.
In this program, bonuses are calculated based on an employee's annual salary and their performance rating. The rating system is contained in Table 4-5.
1. Open the file named EmployeeBonus2.java using Notepad or the text editor of your choice.
2. Variables have been declared for you, and the input statements and output statements have been written. Read them over carefully before you proceed to the next step.
3. Design the logic and write the rest of the program using a switch statement.
4. Compile the program.
5. Execute the program entering the following as input:
Employee's name: Jeanne Hanson
Employee's salary: 70000.00
Employee's performance rating: 2
6. Confirm that your output matches the following:
Employee name: Jeanne Hanson
Employee salary: 70000.0
Employee rating: 2
Employee Bonus: $10500.0
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.