Question: hello, in python plz , and THANK YOUUUU Coffee Shop Write a class called Coffee Shop, which has three instance variables: 1. name : a

hello, in python plz , and THANK YOUUUU
hello, in python plz , and THANK YOUUUU Coffee Shop Write a

Coffee Shop Write a class called Coffee Shop, which has three instance variables: 1. name : a string (basically, of the shop) 2. menu : a list of items (of dict type), with each item containing the item (name of the item), type (whether a food or a drink) and price. 3. orders : an empty list and seven methods: 1. add_order: adds the name of the item to the end of the orders list if it exists on the menu, otherwise, return "This item is currently unavailable!" 2. fulfill_order: if the orders list is not empty, return "The (item) is ready!". If the orders list is empty, return "All orders have been fulfilled! 3. list_orders: returns the item names of the orders taken, otherwise, an empty list. 4. due_amount: returns the total amount due for the orders taken. 5. cheapest_item: returns the name of the cheapest item on the menu. 6. drinks_only: returns only the item names of type drink from the menu. 7. food_only: returns only the item names of type food from the menu. IMPORTANT: Orders are fulfilled in a FIFO (first-in, first-out) order

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 Databases Questions!