Tasks 0.00 out of 10.00 Program uses an if statement Checks O out of 1 checks passed. Review the results below for more details. Code Pattern Incomplete Uses an if statement Description Searched your code for a specific pattern: if\s+.+: Employee Bonus.py 18 dollarValue = float (dollarString) 19 # Write your code here 20 productivityScore = dollarValue/numTransactions 21 productivity Score = productivityScore/numShifts 22 23 if (productivityScore<=30): 24 bonus BONUS_1 25 elif (productivity Score<=69): 26 bonus =BONUS_2 27 elif (productivity Score<=199): 28 bonus BONUS_3 29 else: 30 31 # Output. 32 print("Employee Name: + employeeName) 33 print("Employee Bonus: $" + bonus = BONUS_4 >_ Terminal Enter employee's name:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In python I am suppse to Design the logic and write the rest of the program using a nested if statement. I feel as though i have done that but it keeps coming up incorrect Ican not figure where my error is. Please take a look

Tasks
0.00
out of
10.00
Program uses an if
statement
Checks
O out of 1 checks passed.
Review the results below for
more details.
Code Pattern Incomplete
Uses an if statement
Description
Searched your code for a specific
pattern:
if\s+.+:
Employee Bonus.py
18 dollarValue = float
(dollarString)
19 # Write your code here
20 productivityScore =
dollarValue/numTransactions
21 productivity Score =
productivityScore/numShifts
22
23 if (productivityScore<=30):
24 bonus BONUS_1
25 elif (productivity Score<=69):
26
bonus =BONUS_2
27 elif (productivity Score<=199):
28
bonus BONUS_3
29 else:
30
31 # Output.
32 print("Employee Name: +
employeeName)
33 print("Employee Bonus: $" +
bonus = BONUS_4
>_ Terminal
Enter employee's name:
Transcribed Image Text:Tasks 0.00 out of 10.00 Program uses an if statement Checks O out of 1 checks passed. Review the results below for more details. Code Pattern Incomplete Uses an if statement Description Searched your code for a specific pattern: if\s+.+: Employee Bonus.py 18 dollarValue = float (dollarString) 19 # Write your code here 20 productivityScore = dollarValue/numTransactions 21 productivity Score = productivityScore/numShifts 22 23 if (productivityScore<=30): 24 bonus BONUS_1 25 elif (productivity Score<=69): 26 bonus =BONUS_2 27 elif (productivity Score<=199): 28 bonus BONUS_3 29 else: 30 31 # Output. 32 print("Employee Name: + employeeName) 33 print("Employee Bonus: $" + bonus = BONUS_4 >_ Terminal Enter employee's name:
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education