From 68d05c6b926e5746f9040d9fd9659d0ff9ac4ee7 Mon Sep 17 00:00:00 2001 From: Smaugslayer Date: Mon, 20 Mar 2017 13:04:10 -0400 Subject: [PATCH 1/6] McDonaldsMain --- ClassProject/csp_main.txt | 56 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/ClassProject/csp_main.txt b/ClassProject/csp_main.txt index fd5427a..11ad8a7 100644 --- a/ClassProject/csp_main.txt +++ b/ClassProject/csp_main.txt @@ -18,8 +18,8 @@ * OUTPUTS none * * @file csp_main.txt - * @author Brad Smith - * @date 3/9/2017 + * @author Ethan Finck + * @date 3/20/2017 */ /**************************************************************************** @@ -43,5 +43,57 @@ void main (void) end end #while(1) +if (hour < 11) +include csp_Fruit 'N Yogurt Parfait +include csp_egg_mcmuffin +include csp_Egg Whight Delight McMuffin +include csp_sausage_mcmuffin +include csp_sausage_egg_mcmuffin +include csp_sausage_biscuit +include csp_sausage_egg_biscuit +include csp_Steak Egg and cheese biscuit +include csp_bacon_egg_cheese_biscuit +include csp_Mcgiddles +include csp_Bacon egg and cheese bagel +include csp_Big brekfast with hot cakes +include csp_big_breakfast +include csp_Hotcakes +include csp_hotcakes_with_sausage +include csp_sausage_burrito +include csp_hash_browns +include csp_fruit_and_maple_oat_meal +else +include csp_BigMac +include csp_GrandMac +include csp_MacJr +include csp_QuarterPounder +include csp_DoubleQuarterPounder +include csp_DoubleCheeseburger +include csp_Hamburger +include csp_CheeseBurger +include csp_McDouble +include csp_chicken mcnuggets +include csp_artisan-grilled-chicken-sandwich +include csp_mcchicken +include csp_Filet-O-Fish +include csp_Bacon Ranch Salad & Buttermilk Crispy Chicken +include csp_baconranchgrilledsalad +include csp_southwest chicken saled +include csp_side salad +include csp_world famous fries +include csp_apple slices +include csp_cuties +include csp_Yoplait Go-Gurt Low fat Strawberry Yogurt +include csp_vanilla_cone +include csp_hot_fudge_sundae +include csp_Oreo_mcflurry +include csp_m%m_mcflurry +include csp_ +include csp_ +include csp_ +include csp_ +include csp_ + + end #program \ No newline at end of file From 2495f6c4d3eafeb1979cbfa03518c762f6a55b61 Mon Sep 17 00:00:00 2001 From: Smaugslayer Date: Mon, 20 Mar 2017 13:05:16 -0400 Subject: [PATCH 2/6] McDonaldsMain --- ClassProject/csp_main.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClassProject/csp_main.txt b/ClassProject/csp_main.txt index 11ad8a7..98ec6ec 100644 --- a/ClassProject/csp_main.txt +++ b/ClassProject/csp_main.txt @@ -93,7 +93,7 @@ include csp_ include csp_ include csp_ include csp_ - +end # of if end #program \ No newline at end of file From d6aa0008319829014a532d33d7f07383ef10caef Mon Sep 17 00:00:00 2001 From: Smaugslayer Date: Tue, 21 Mar 2017 12:42:51 -0400 Subject: [PATCH 3/6] McDonaldsMain#2 --- ClassProject/csp_main.txt | 42 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/ClassProject/csp_main.txt b/ClassProject/csp_main.txt index 98ec6ec..06547c1 100644 --- a/ClassProject/csp_main.txt +++ b/ClassProject/csp_main.txt @@ -18,7 +18,7 @@ * OUTPUTS none * * @file csp_main.txt - * @author Ethan Finck + * @author Brad Smith/Ethan Finck * @date 3/20/2017 */ @@ -30,20 +30,6 @@ #include "time" #include "get" #include "PutOnTray" - -void main (void) - while (1) - integer hour = GetHour() #assumes range is 0-23, i.e. midnight to 11PM - - print "Welcome to McDonalds. Please select from our menu items below." - if (hour < 11) #before 11AM indicates breakfast - print "Breakfast Menu. " - else - print "Main Menu." - end - - end #while(1) -if (hour < 11) include csp_Fruit 'N Yogurt Parfait include csp_egg_mcmuffin include csp_Egg Whight Delight McMuffin @@ -62,7 +48,6 @@ include csp_hotcakes_with_sausage include csp_sausage_burrito include csp_hash_browns include csp_fruit_and_maple_oat_meal -else include csp_BigMac include csp_GrandMac include csp_MacJr @@ -88,12 +73,25 @@ include csp_vanilla_cone include csp_hot_fudge_sundae include csp_Oreo_mcflurry include csp_m%m_mcflurry -include csp_ -include csp_ -include csp_ -include csp_ -include csp_ -end # of if +void main (void) + while (1) + integer hour = GetHour() #assumes range is 0-23, i.e. midnight to 11PM + + print "Welcome to McDonalds. Please select from our menu items below." + if (hour < 11) #before 11AM indicates breakfast + print "Breakfast Menu. " + else + print "Main Menu." + end + + end #while(1) +if (order is ready) + PutOnTray + print "Enjoy your meal" +else + GetOrderReady +end + end #program \ No newline at end of file From cf7f369c7ce56dfe17be379a9db54eae7e231b45 Mon Sep 17 00:00:00 2001 From: Smaugslayer Date: Tue, 21 Mar 2017 12:49:40 -0400 Subject: [PATCH 4/6] McDonaldsMain#3 --- ClassProject/csp_main.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/ClassProject/csp_main.txt b/ClassProject/csp_main.txt index 06547c1..7129360 100644 --- a/ClassProject/csp_main.txt +++ b/ClassProject/csp_main.txt @@ -73,6 +73,7 @@ include csp_vanilla_cone include csp_hot_fudge_sundae include csp_Oreo_mcflurry include csp_m%m_mcflurry +include most drinks void main (void) while (1) integer hour = GetHour() #assumes range is 0-23, i.e. midnight to 11PM From 30809e85ab29f89271ae5c1b473c0810e05eed8b Mon Sep 17 00:00:00 2001 From: Smaugslayer Date: Wed, 22 Mar 2017 10:43:50 -0400 Subject: [PATCH 5/6] McDonaldsMeal#4 --- ClassProject/csp_main.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ClassProject/csp_main.txt b/ClassProject/csp_main.txt index 7129360..d4e98a9 100644 --- a/ClassProject/csp_main.txt +++ b/ClassProject/csp_main.txt @@ -86,13 +86,7 @@ void main (void) end end #while(1) -if (order is ready) - PutOnTray - print "Enjoy your meal" -else - GetOrderReady -end - +PutOnTray (GetMeal) end #program \ No newline at end of file From 6548e592a9806f010fc1c11a73a9a684fd1d5d70 Mon Sep 17 00:00:00 2001 From: Smaugslayer Date: Fri, 24 Mar 2017 10:44:25 -0400 Subject: [PATCH 6/6] McDonaldsMain#5 --- ClassProject/csp_main.txt | 45 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/ClassProject/csp_main.txt b/ClassProject/csp_main.txt index d4e98a9..328876a 100644 --- a/ClassProject/csp_main.txt +++ b/ClassProject/csp_main.txt @@ -74,6 +74,14 @@ include csp_hot_fudge_sundae include csp_Oreo_mcflurry include csp_m%m_mcflurry include most drinks +include csp_mcgriddles_meal +include Evm_DoubleQuarterPounder +include Evm_Grand mac +include Evm_Quarter pounder +include csp_EVMFilet-O-Fish +include csp_10peice_mcnuggetEvm +include csp_evm_Artisan_Grilled_Chicken_Sandwich +include csp_evm_SausageMcmuffinEgg void main (void) while (1) integer hour = GetHour() #assumes range is 0-23, i.e. midnight to 11PM @@ -81,12 +89,47 @@ void main (void) print "Welcome to McDonalds. Please select from our menu items below." if (hour < 11) #before 11AM indicates breakfast print "Breakfast Menu. " + print "What would you like for breakfast" + get (input) + if (input == Sausage Biscuit) + PutOnTray(Sausage Biscuit) + else if (input == hash browns) + PutOnTray(hash browns) + else if (input == coke) + PutOnTray(coke) + else if (input == Sausage Mcmuffin with egg meal) + PutOnTray (Sausage Mcmuffin with egg meal) + else if (input == Bacon egg sheese mcgiddle meal) + PutOnTray (Bacon egg sheese mcgiddle meal) + + end else print "Main Menu." + print "What would you like" + if (input == Artisan grilled sandwich meal) + PutOnTray (Artisan grilled sandwich meal) + else if (input == Big Mac meal with sprite) + PutOnTray (Big Mac meal with sprite) + else if (input == Big Mac meal with coke) + PutOnTray (Big Mac meal with coke) + else if (input == order of fries) + PutOntTray (order of fries) + else if (input == Large coke) + PutOnTray (Large coke) + else if (input == Large Diet coke) + PutOnTray (Large Diet coke) + else if (input == chocolate shake) + PutOnTray (chocolate shake) + else if (input == 10 peice nugget meal with sweet tea) + PutOnTray (10 peice nugget meal with sweet tea) + else + print "item not available please pick another item" + end + end end #while(1) -PutOnTray (GetMeal) + end #program \ No newline at end of file