|
| 1 | +from menu import Menu, MenuItem |
| 2 | + |
| 3 | +pancake_house_menu = Menu("PANCAKE HOUSE MENU", "Breakfast") |
| 4 | +diner_menu = Menu("DINER MENU", "Lunch") |
| 5 | +cafe_menu = Menu("CAFE MENU", "Dinner") |
| 6 | +dessert_menu = Menu("DESSERT MENU", "Dessert of course!") |
| 7 | +coffee_menu = Menu("COFFEE MENU", "Stuff to go with your afternoon coffee") |
| 8 | + |
| 9 | +all_menus = Menu("ALL MENUS", "All menus combined") |
| 10 | + |
| 11 | +all_menus.append(pancake_house_menu) |
| 12 | +all_menus.append(diner_menu) |
| 13 | +all_menus.append(cafe_menu) |
| 14 | + |
| 15 | +pancake_house_menu.append(MenuItem( |
| 16 | + "K&B's Pancake Breakfast", |
| 17 | + "Pancakes with scrambled eggs, and toast", |
| 18 | + True, |
| 19 | + 2.99)) |
| 20 | +pancake_house_menu.append(MenuItem( |
| 21 | + "Regular Pancake Breakfast", |
| 22 | + "Pancakes with fried eggs, sausage", |
| 23 | + False, |
| 24 | + 2.99)) |
| 25 | +pancake_house_menu.append(MenuItem( |
| 26 | + "Blueberry Pancakes", |
| 27 | + "Pancakes made with fresh blueberries, and blueberry syrup", |
| 28 | + True, |
| 29 | + 3.49)) |
| 30 | +pancake_house_menu.append(MenuItem( |
| 31 | + "Waffles", |
| 32 | + "Waffles, with your choice of blueberries or strawberries", |
| 33 | + True, |
| 34 | + 3.59)) |
| 35 | + |
| 36 | +diner_menu.append(MenuItem( |
| 37 | + "Vegetarian BLT", |
| 38 | + "(Fakin') Bacon with lettuce & tomato on whole wheat", |
| 39 | + True, |
| 40 | + 2.99)) |
| 41 | +diner_menu.append(MenuItem( |
| 42 | + "BLT", |
| 43 | + "Bacon with lettuce & tomato on whole wheat", |
| 44 | + False, |
| 45 | + 2.99)) |
| 46 | +diner_menu.append(MenuItem( |
| 47 | + "Soup of the day", |
| 48 | + "A bowl of the soup of the day, with a side of potato salad", |
| 49 | + False, |
| 50 | + 3.29)) |
| 51 | +diner_menu.append(MenuItem( |
| 52 | + "Hotdog", |
| 53 | + "A hot dog, with saurkraut, relish, onions, topped with cheese", |
| 54 | + False, |
| 55 | + 3.05)) |
| 56 | +diner_menu.append(MenuItem( |
| 57 | + "Steamed Veggies and Brown Rice", |
| 58 | + "Steamed vegetables over brown rice", |
| 59 | + True, |
| 60 | + 3.99)) |
| 61 | + |
| 62 | +diner_menu.append(MenuItem( |
| 63 | + "Pasta", |
| 64 | + "Spaghetti with Marinara Sauce, and a slice of sourdough bread", |
| 65 | + True, |
| 66 | + 3.89)) |
| 67 | + |
| 68 | +diner_menu.append(dessert_menu) |
| 69 | + |
| 70 | +dessert_menu.append(MenuItem( |
| 71 | + "Apple Pie", |
| 72 | + "Apple pie with a flakey crust, topped with vanilla icecream", |
| 73 | + True, |
| 74 | + 1.59)) |
| 75 | + |
| 76 | +dessert_menu.append(MenuItem( |
| 77 | + "Cheesecake", |
| 78 | + "Creamy New York cheesecake, with a chocolate graham crust", |
| 79 | + True, |
| 80 | + 1.99)) |
| 81 | +dessert_menu.append(MenuItem( |
| 82 | + "Sorbet", |
| 83 | + "A scoop of raspberry and a scoop of lime", |
| 84 | + True, |
| 85 | + 1.89)) |
| 86 | + |
| 87 | +cafe_menu.append(MenuItem( |
| 88 | + "Veggie Burger and Air Fries", |
| 89 | + "Veggie burger on a whole wheat bun, lettuce, tomato, and fries", |
| 90 | + True, |
| 91 | + 3.99)) |
| 92 | +cafe_menu.append(MenuItem( |
| 93 | + "Soup of the day", |
| 94 | + "A cup of the soup of the day, with a side salad", |
| 95 | + False, |
| 96 | + 3.69)) |
| 97 | +cafe_menu.append(MenuItem( |
| 98 | + "Burrito", |
| 99 | + "A large burrito, with whole pinto beans, salsa, guacamole", |
| 100 | + True, |
| 101 | + 4.29)) |
| 102 | + |
| 103 | +cafe_menu.append(coffee_menu) |
| 104 | + |
| 105 | +coffee_menu.append(MenuItem( |
| 106 | + "Coffee Cake", |
| 107 | + "Crumbly cake topped with cinnamon and walnuts", |
| 108 | + True, |
| 109 | + 1.59)) |
| 110 | +coffee_menu.append(MenuItem( |
| 111 | + "Bagel", |
| 112 | + "Flavors include sesame, poppyseed, cinnamon raisin, pumpkin", |
| 113 | + False, |
| 114 | + 0.69)) |
| 115 | +coffee_menu.append(MenuItem( |
| 116 | + "Biscotti", |
| 117 | + "Three almond or hazelnut biscotti cookies", |
| 118 | + True, |
| 119 | + 0.89)) |
| 120 | + |
| 121 | +class Garconete: |
| 122 | + |
| 123 | + def __init__(self, menu): |
| 124 | + self.menu = menu |
| 125 | + |
| 126 | + def display_menu(self): |
| 127 | + self.menu.display() |
| 128 | + |
| 129 | +jane = Garconete(all_menus) |
| 130 | + |
| 131 | +jane.display_menu() |
0 commit comments