############################################################# # SAMPLE RUN #1: SHOWING MENU INPUT VALIDATION AND QUITTING # ############################################################# bash-4.1$ python proj1.py E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: q ERROR: That choice is not valid, please select again. Select a main menu option: Quit ERROR: That choice is not valid, please select again. Select a main menu option: EVPQ ERROR: That choice is not valid, please select again. Select a main menu option: E P - Proteins C - Carbs V - Vegetables F - Fruits D - Desserts Q - Quit Select a food type to enter: S ERROR: That choice is not valid, please select again. Select a food type to enter: d ERROR: That choice is not valid, please select again. Select a food type to enter: Q E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: Q Thank you for using the meal planner! ############################################################################# # SAMPLE RUN #2: SHOWING BASIC ADDITION OF FOOD, INCLUDING INPUT VALIDATION # ############################################################################# bash-4.1$ python proj1.py E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: E P - Proteins C - Carbs V - Vegetables F - Fruits D - Desserts Q - Quit Select a food type to enter: F Please enter the food name: starfruit Enter the calories in the food: -50 ERROR: That is not valid; enter a number greater than or equal to 0 Enter the calories in the food: 16000000000000000000000000 Enter the food's weight in grams: -50 ERROR: That is not valid; enter a number between 0 and 11340 inclusive Enter the food's weight in grams: 11400 ERROR: That is not valid; enter a number between 0 and 11340 inclusive Enter the food's weight in grams: 11341 ERROR: That is not valid; enter a number between 0 and 11340 inclusive Enter the food's weight in grams: 11340 E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: V Proteins: Carbs: Vegetables: Fruits: starfruit 16000000000000000000000000 calories 11340 grams Desserts: E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: Q Thank you for using the meal planner! ########################################################## # SAMPLE RUN #3: SHOWING THE OUTCOMES OF AN EMPTY PANTRY # ########################################################## bash-4.1$ python proj1.py E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: V Proteins: Carbs: Vegetables: Fruits: Desserts: E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: P There are no complete meals possible, go shopping! E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: E P - Proteins C - Carbs V - Vegetables F - Fruits D - Desserts Q - Quit Select a food type to enter: C Please enter the food name: bagels Enter the calories in the food: 245 Enter the food's weight in grams: 98 E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: V Proteins: Carbs: bagels 245 calories 98 grams Vegetables: Fruits: Desserts: E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: P There are no complete meals possible, go shopping! E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: Q Thank you for using the meal planner! ############################################################### # SAMPLE RUN #4: SHOWING MORE FUNCTIONALITY OF THE PANTRY # ############################################################### # This pantry starts off filled with a pre-populated foodList # # To obtain it, use the command: # # cp /afs/umbc.edu/users/k/k/k38/pub/cs201/foodList.txt . # ############################################################### # There are two important things to notice about this run: # # 1) Originally, there are only 5 complete meals, even though # # there are 6 proteins, carbs, and fruits. After adding a # # vegetable and a dessert, there are now 6 complete meals. # # 2) The pantry print out only lines up so nicely because the # # various fields are all about the same length. Adding # # "chocolate lava cake", which is very long, throws off # # desserts lining up -- this is FINE! No need to fix it. # ############################################################### bash-4.1$ python proj1.py E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: V Proteins: pork loin 478 calories 333 grams t-bone steak 210 calories 85 grams turkey bacon 107 calories 28 grams firm tofu 88 calories 116 grams large egg 78 calories 50 grams greek yogurt 100 calories 170 grams Carbs: stuffing 656 calories 170 grams white bread 79 calories 30 grams Deritos 140 calories 28 grams Chezzits 150 calories 30 grams oatmeal 158 calories 234 grams Lacky Churms 110 calories 27 grams Vegetables: carrot 25 calories 61 grams kale chips 50 calories 99 grams bell pepper 24 calories 119 grams edamame 189 calories 155 grams eggplant 136 calories 548 grams Fruits: avocado 322 calories 201 grams tomato 22 calories 123 grams banana 105 calories 118 grams kumquat 13 calories 19 grams dragonfruit 52 calories 100 grams durian 150 calories 221 grams Desserts: Mulky Why 190 calories 43 grams Kwondike Bar 270 calories 82 grams Ohreos 160 calories 34 grams brownie 112 calories 24 grams apple pie 296 calories 125 grams E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: P There are 5 complete meals available. E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: E P - Proteins C - Carbs V - Vegetables F - Fruits D - Desserts Q - Quit Select a food type to enter: V Please enter the food name: broccoli Enter the calories in the food: 11 Enter the food's weight in grams: 31 E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: P There are 5 complete meals available. E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: E P - Proteins C - Carbs V - Vegetables F - Fruits D - Desserts Q - Quit Select a food type to enter: D Please enter the food name: chocolate lava cake Enter the calories in the food: 590 Enter the food's weight in grams: 200 E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: P There are 6 complete meals available. E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: V Proteins: pork loin 478 calories 333 grams t-bone steak 210 calories 85 grams turkey bacon 107 calories 28 grams firm tofu 88 calories 116 grams large egg 78 calories 50 grams greek yogurt 100 calories 170 grams Carbs: stuffing 656 calories 170 grams white bread 79 calories 30 grams Deritos 140 calories 28 grams Chezzits 150 calories 30 grams oatmeal 158 calories 234 grams Lacky Churms 110 calories 27 grams Vegetables: carrot 25 calories 61 grams kale chips 50 calories 99 grams bell pepper 24 calories 119 grams edamame 189 calories 155 grams eggplant 136 calories 548 grams broccoli 11 calories 31 grams Fruits: avocado 322 calories 201 grams tomato 22 calories 123 grams banana 105 calories 118 grams kumquat 13 calories 19 grams dragonfruit 52 calories 100 grams durian 150 calories 221 grams Desserts: Mulky Why 190 calories 43 grams Kwondike Bar 270 calories 82 grams Ohreos 160 calories 34 grams brownie 112 calories 24 grams apple pie 296 calories 125 grams chocolate lava cake 590 calories 200 grams E - Enter food V - View pantry P - Possible complete meal? Q - Quit Select a main menu option: Q Thank you for using the meal planner!