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 add-in is not found.
# Initialize variables.
NUM_ITEMS =5
# Initialized list of add-ins.
addIns =["Cream", "Cinnamon", "Chocolate", "Amaretto", "Whiskey"]
# Initialized list of add-in prices.
addInPrices =[.89,.25,.59,1.50,1.75]
found It= False
ordertotal =2.00,# All orders start with a 2.00 charge
# Get user input.
addIn = input("Enter coffee add-in or XXX to quit: ")
# Write the rest of the program here.
while addIn !="xxx":
for i in range , len(addIns)):
if addIn == addins [i]:
Must use while loops in python: JumpinJive.py -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!