what's the error?
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
what's the error?
![Parallel Arrays in Python
Tasks
JumpinJive.py
+
>_ Terminal
1
Enter coffee add-in or XXX to quit
2 NUM_ITEMS = 5
Enter coffee add-in or XXX to quit: Cre.
Cream 0.89
4 addIns =
["Cream", "Cinnamon", "Chocolate", "Amaretto",
Enter coffee add-in or XXX to quit: Whi
Whiskey 1.75
Enter coffee add-in or XXX to quit: Cho
"Whiskey"]
</>
[.89, .25, .59, 1.50, 1.75]
5 addInPrices =
6 foundIt = False
7 orderTotal = 2.00
8 while(True):
Chocolate .59
Enter coffee add-in or XXX to quit: Cini
found=False
addIn = input("Enter coffee add-in or XXX to quit: ")
if(addIn=='XXX'):
Cinnamon 0.25
10
Enter coffee add-in or XXX to quit: XXX
Order Total is 5.48
11
12
break
13
for i in range(0,NUM_ITEMS):
if(addIns[i]==addIn):
orderTotal=orderTotal+addInPrices[i]
print(addIn, addInPrices[i])
14
Results e
15
Cream Price is $0.89 | Whiskey Price is $1.75
16
Chocolate Price is $0.59
Cinnamon Price is $0.25
foundIt=True
found=True
17
Order Total is $5.48
18
19
break
Show Details
if(found==False):
print("Sorry, we do not carry that.")
20
21
Test Case • Complete
へ
22 if(foundIt):
chocolate
23
print("Order Total is",orderTotal)
24
Run checks
A Submit 91%](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb4d4e4d7-a03b-4b73-8195-475fa43c9511%2F2bc40aed-6b30-4046-8e83-91591f4b3d59%2Fu11n9u_processed.png&w=3840&q=75)
Transcribed Image Text:Parallel Arrays in Python
Tasks
JumpinJive.py
+
>_ Terminal
1
Enter coffee add-in or XXX to quit
2 NUM_ITEMS = 5
Enter coffee add-in or XXX to quit: Cre.
Cream 0.89
4 addIns =
["Cream", "Cinnamon", "Chocolate", "Amaretto",
Enter coffee add-in or XXX to quit: Whi
Whiskey 1.75
Enter coffee add-in or XXX to quit: Cho
"Whiskey"]
</>
[.89, .25, .59, 1.50, 1.75]
5 addInPrices =
6 foundIt = False
7 orderTotal = 2.00
8 while(True):
Chocolate .59
Enter coffee add-in or XXX to quit: Cini
found=False
addIn = input("Enter coffee add-in or XXX to quit: ")
if(addIn=='XXX'):
Cinnamon 0.25
10
Enter coffee add-in or XXX to quit: XXX
Order Total is 5.48
11
12
break
13
for i in range(0,NUM_ITEMS):
if(addIns[i]==addIn):
orderTotal=orderTotal+addInPrices[i]
print(addIn, addInPrices[i])
14
Results e
15
Cream Price is $0.89 | Whiskey Price is $1.75
16
Chocolate Price is $0.59
Cinnamon Price is $0.25
foundIt=True
found=True
17
Order Total is $5.48
18
19
break
Show Details
if(found==False):
print("Sorry, we do not carry that.")
20
21
Test Case • Complete
へ
22 if(foundIt):
chocolate
23
print("Order Total is",orderTotal)
24
Run checks
A Submit 91%
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY