Write a class called CoffeeShop, which has three instance variables:
and seven methods:
"This item is currently unavailable!""The {item} is ready!". If the orders list is empty, return "All orders have been fulfilled!"IMPORTANT: Orders are fulfilled in a FIFO (first-in, first-out) order.
tcs.add_order("hot cocoa") ➞ "This item is currently unavailable!"
# Tesha's coffee shop does not sell hot cocoa
tcs.add_order("iced tea") ➞ "This item is currently unavailable!"
# specifying the variant of "iced tea" will help the process
tcs.add_order("cinnamon roll") ➞ "Order added!"
tcs.add_order("iced coffee") ➞ "Order added!"
tcs.list_orders ➞ ["cinnamon roll", "iced coffee"]
# all items of the current order
tcs.due_amount() ➞ 2.17
tcs.fulfill_order() ➞ "The cinnamon roll is ready!"
tcs.fulfill_order() ➞ "The iced coffee is ready!"
tcs.fulfill_order() ➞ "All orders have been fulfilled!"
# all orders have been presumably served
tcs.list_orders() ➞ []
# an empty list is returned if all orders have been exhausted
tcs.due_amount() ➞ 0.0
# no new orders taken, expect a zero payable
tcs.cheapest_item() ➞ "lemonade"
tcs.drinks_only() ➞ ["orange juice", "lemonade", "cranberry juice", "pineapple juice", "lemon iced tea", "vanilla chai latte", "hot chocolate", "iced coffee"]
tcs.food_only() ➞ ["tuna sandwich", "ham and cheese sandwich", "bacon and egg", "steak", "hamburger", "cinnamon roll"]
Round off due amount up to two decimal places.