Question: hello, in python plz , and THANK YOUUUU Coffee Shop Write a class called Coffee Shop, which has three instance variables: 1. name : 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
Get step-by-step solutions from verified subject matter experts
