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 prewritten Python program that calculates an employees endofyear 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
percent of annual salary
percent of annual salary
percent of annual salary
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 : 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:
Employees performance rating:
Confirm that your output matches the following:
Employee Name: Jeanne Hanson
Employee Salary: $
Employee Rating:
Employee Bonus: $
Confirm that your output matches the following:
Employee Name: Jeanne Hanson
Employee Salary: $
Employee Rating:
Employee Bonus: $
Using the Employeebonus instructions document complete task In task you will write a python matchcase statement to get the employee's bonus, so google matchcase 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 matchcase statements so if you get an error that would be the cause. After you complete the code in Employeebonuspy 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
