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))
Answers: 3
Computers and Technology, 22.06.2019 02:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print?
Answers: 3
Computers and Technology, 22.06.2019 04:30
What kind of software users of all skill levels create web pages that include graphics, video, audio, animation, and other special effects? website authoring website software website publishing website editing
Answers: 1
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message âconstructingâ. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
Multiple Contidional Statements (brushing up on earlier assignments I didn't do too well on)
Mathematics, 07.04.2021 20:00
Biology, 07.04.2021 20:00
Mathematics, 07.04.2021 20:00
Engineering, 07.04.2021 20:00
Mathematics, 07.04.2021 20:00
Health, 07.04.2021 20:00
Spanish, 07.04.2021 20:00
Chemistry, 07.04.2021 20:00
History, 07.04.2021 20:00
Mathematics, 07.04.2021 20:00