![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 02.03.2020 17:17 jennyn26
Multiple Contidional Statements (brushing up on earlier assignments I didn't do too well on)
Summary:
In this lab, you complete a prewritten Python 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 employees’ annual salary and their performance rating.
Instructions:
1. 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.
2. Design the logic, and write the rest of the program using if - elif statements.
3. Execute the program entering the following as input:
Jeanne Hanson
70000.00
2
4. Confirm that your output matches the following:
Employee Name: Jeanne Hanson
Employee Bonus: $10500
Assignment (EmployeeBonus2.py):
# EmployeeBonus2.py - This program calculates an employee's yearly bonus.
# Declare and initialize variables here
BONUS_1 = 0.25
BONUS_2 = 0.15
BONUS_3 = 0.1
NO_BONUS = 0
RATING_1 = 1
RATING_2 = 2
RATING_3 = 3
employeeFirstName = input("Enter employee's first name: ")
employeeLastName = input("Enter employee's last name: ")
employeeSalary = float(input("Enter the employee's yearly salary: "))
employeeRating = int(input("Enter employee's performance rating: "))
# Write your code here
# Output bonus here
print("Employee Name: " + employeeFirstName + " " + employeeLastName)
print("Employee Bonus: $" + str(bonus))
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 09:00
Create a cell reference in a formula by typing in the cell name or a. right-clicking the cell. b. clicking the cell. c. clicking the column where the cell is located. d. clicking the row where the cell is located.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 11:20
Http is the protocol that governs communications between web servers and web clients (i.e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 06:30
Some peer-to-peer networks have a server and some don't. true false
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 12:00
Which spreadsheet operation does a look function perform?
Answers: 1
You know the right answer?
Multiple Contidional Statements (brushing up on earlier assignments I didn't do too well on)
Questions
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 25.11.2020 23:00
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 25.11.2020 23:00
![question](/tpl/images/cats/mat.png)
Mathematics, 25.11.2020 23:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/mkx.png)
![question](/tpl/images/cats/en.png)
English, 25.11.2020 23:00
![question](/tpl/images/cats/mat.png)
Mathematics, 25.11.2020 23:00
![question](/tpl/images/cats/mat.png)
Mathematics, 25.11.2020 23:00
![question](/tpl/images/cats/istoriya.png)
History, 25.11.2020 23:00
![question](/tpl/images/cats/mat.png)
Mathematics, 25.11.2020 23:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 25.11.2020 23:00