Question: In this lab, you complete a pre - written Python program that calculates an employee s end - of - year bonus and prints the

In this lab, you complete a pre-written Python program that calculates an employees end-of-year bonus and prints the employees name, yearly salary, performance rating, and bonus. In this program, bonuses are calculated based on employees annual salary and their performance rating. The rating system is listed below:
Rating Bonus
125 percent of annual salary
215 percent of annual salary
310 percent of annual salary
4 None
Instructions
Variables have been initialized for you, and the input statements and output statements have been written. Read them over carefully before you proceed to the next step.
Task 1: Design the logic, and write the rest of the program using a MATCH statement.
Execute the program entering the following as input:
Employees name: Jeanne Hanson
Employees salary: 70000.00
Employees performance rating: 2
Confirm that your output matches the following:
Employee Name: Jeanne Hanson
Employee Salary: $70000
Employee Rating: 2
Employee Bonus: $10500
Confirm that your output matches the following:
Employee Name: Jeanne Hanson
Employee Salary: $70000
Employee Rating: 2
Employee Bonus: $10500
Using the Employeebonus2 instructions document complete task 1. In task 1 you will write a python match-case statement to get the employee's bonus, so google match-case statement for python. You will put that code under the comment # Use match statement here to calculate bonus based on rating. When writing your code use the variables already defined in the program. Important tip: indenting also matters with match-case statements so if you get an error that would be the cause. After you complete the code in Employeebonus2.py make sure it runs without errors and gives the expected results as shown in the directions.

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!