Question: The program should either print the name and price for a coffee add-in from the Jumpin' Jive Coffee Shop or it should print the message

The program should either print the name and price for a coffee add-in from the Jumpin' Jive Coffee Shop or it should print the message "Sorry, we do not carry that.".

Read the problem description carefully before you begin. The data file provided for this lab includes the necessary input statements. You need to write the part of the program that searches for the name of the coffee add-in(s) and either prints the name and price of the add-in or prints the error message if the add-in is not found. Comments in the code tell you where to write the statements.

 

 

Instructions


Write the code that searches the list for the name of the add-in ordered by the customer.
Write the code that prints the name and price of the add-in or the error message, and then write the code that prints the cost of the total order.
Execute the program using the following data and verify that the output is correct:
Cream
Caramel
Whiskey
chocolate
Chocolate
Cinnamon
Vanilla

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python Program Sample data addins with their names and prices addins ... View full answer

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!