Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Summary: In this lab, you complete a prewritten Python program that calculates an employee s end - of - year bonus and prints the employee
Summary:
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.
Instructions:
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.
Design the logic, and write the rest of the program using if elif statements.
Execute the program entering the following as input:
Jeanne Hanson
Confirm that your output matches the following:
Employee Name: Jeanne Hanson
Employee Bonus: $
Assignment EmployeeBonuspy:
# EmployeeBonuspy This program calculates an employee's yearly bonus.
# Declare and initialize variables here
BONUS
BONUS
BONUS
NOBONUS
RATING
RATING
RATING
employeeFirstName inputEnter employee's first name:
employeeLastName inputEnter employee's last name:
employeeSalary floatinputEnter the employee's yearly salary:
employeeRating intinputEnter employee's performance rating:
# Write your code here
# Output bonus here
printEmployee Name: employeeFirstName employeeLastName
printEmployee Bonus: $ strbonus
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started