Question: Must use while loops in python: JumpinJive.py - This program looks up and prints the names and prices of coffee orders. # Input: Interactive. #
Must use while loops in python:
JumpinJive.py This program looks up and prints the names and prices of coffee orders.
# Input: Interactive.
# Output: Name and price of coffee orders or error message if addin is not found.
# Initialize variables.
NUMITEMS
# Initialized list of addins.
addIns Cream "Cinnamon", "Chocolate", "Amaretto", "Whiskey"
# Initialized list of addin prices.
addInPrices
found False
ordertotal # All orders start with a charge
# Get user input.
addIn inputEnter coffee addin or XXX to quit:
# Write the rest of the program here.
while addIn xxx:
for in range lenaddIns:
if addIn addins i:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
