diff --git a/main.py b/main.py index c4bf309..8384253 100644 --- a/main.py +++ b/main.py @@ -30,4 +30,15 @@ if option == 0: myOrder.print_order() - break \ No newline at end of file + break + + if option ==1: + myOrder.add_lemonade() + break + + if option == 10: + myOrder.add_macncheese() + break + + + diff --git a/order.py b/order.py index 98deba9..4ab6949 100644 --- a/order.py +++ b/order.py @@ -9,4 +9,13 @@ def print_order(self): print('Here are your items: ', end = '') print(*self.items, sep = ', ') + def add_lemonade(self): + self.total_cost=7.5 + self.items += ["lemonade"] + print("Added lemonade") + + def add_macncheese(self): + self.total_cost+=3.5 + self.items+= ["mac n cheese"] + print("Add mac n cheese") # implement methods for menu items