-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
1842 lines (1698 loc) · 97.1 KB
/
main.cpp
File metadata and controls
1842 lines (1698 loc) · 97.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include "include.hpp"
using namespace std;
string display_burger_places()
{
cout << "\nBurger Places\n===============" << endl;
FastFood_Client i_burger_places;
i_burger_places.fastfood_burger_run();
cout << endl;
cout << "Choose a selection from the above restaurants!" << endl;
int choice = 0;
cin >> choice;
int burger_choice = 0;
string restaurant_name = "";
if (choice == 1)
{
menu_mcdonalds_display i_mcdonalds;
i_mcdonalds.display_mcdonalds_customer_favorites();
restaurant_name = "McDonalds";
return restaurant_name;
}
else if (choice == 2)
{
menu_chickfilas_display i_chickfila;
i_chickfila.display_chickfilas_customer_favorites();
restaurant_name = "Chick Fil A";
return restaurant_name;
}
else if (choice == 3)
{
menu_innouts_display i_innout;
i_innout.display_innouts_customer_favorites();
restaurant_name = "In N Out";
return restaurant_name;
}
else
{
cout << "Invalid Input!" << endl;
}
}
string display_taco_places()
{
cout << "\nTaco Places\n===============" << endl;
FastFood_Client i_taco_places;
i_taco_places.fastfood_taco_run();
cout << endl;
cout << "Choose a selection from the above restaurants!" << endl;
int choice = 0;
cin >> choice;
int taco_choice = 0;
string restaurant_name = "";
if (choice == 1)
{
menu_tacobell_display i_tacobell;
i_tacobell.display_tacobells_customer_favorites();
restaurant_name = "Taco Bell";
return restaurant_name;
}
else if (choice == 2)
{
menu_deltacos_display i_deltaco;
i_deltaco.display_deltacos_customer_favorites();
restaurant_name = "Del Taco";
return restaurant_name;
}
else if (choice == 3)
{
menu_elpollolocos_display i_elpolloloco;
i_elpolloloco.display_elpollolocos_customer_favorites();
restaurant_name = "El Pollo Loco";
return restaurant_name;
}
else
{
cout << "Invalid Input!" << endl;
}
}
string display_pizza_places()
{
cout << "\nPizza Places\n===============" << endl;
FastFood_Client PizzaPlaces;
PizzaPlaces.fastfood_pizza_run();
cout << endl;
cout << "Choose a selection from the above restaurants!" << endl;
int choice = 0;
cin >> choice;
int pizza_choice = 0;
string restaurant_name = "";
if (choice == 1)
{
menu_dominos_display i_dominos;
i_dominos.display_dominos_customer_favorites();
restaurant_name = "Dominos";
return restaurant_name;
}
else if (choice == 2)
{
menu_pizzahut_display i_pizzahut;
i_pizzahut.display_pizzahut_customer_favorites();
restaurant_name = "Pizza Hut";
return restaurant_name;
}
else if (choice == 3)
{
menu_papajohns_display i_papajohns;
i_papajohns.display_papajohns_customer_favorites();
restaurant_name = "Papa John's";
return restaurant_name;
}
else
{
cout << "Invalid Input!" << endl;
}
}
int main()
{
bool condition = true;
string user_option = "";
int user_fastfood_option = 0;
int user_fastfood_option_choice = 0;
string rest_type = "";
string user1 = "";
string user2 = "";
string user3 = "";
string i_party_name = "";
int i_party_size = 0;
cout << "Hello! Welcome to SPLICE. Remember, you can press 'q' to quit!!" << endl;
cout << "Give your party a name (without spaces!). Press 'Enter' when you are done!" << endl;
cin >> i_party_name;
if (i_party_name == "q" || i_party_name == "Q")
{
return 0;
}
cout << "How many people are in your party? We can only support up to 3 people." << endl;
cin >> i_party_size;
if (i_party_size <= 0 || i_party_size > 3)
{
cout << "Invalid input! Did you make sure your party is less than the size of 3?" << endl;
return 0;
}
else if (i_party_size == 1)
{
cout << "Give User #1 a name!" << endl;
cin >> user1;
}
else if (i_party_size == 2)
{
cout << "Give User #1 a name!" << endl;
cin >> user1;
cout << "Give User 2 a name!" << endl;
cin >> user2;
}
else if (i_party_size == 3)
{
cout << "Give User 1 a name!" << endl;
cin >> user1;
cout << "Give User 2 a name!" << endl;
cin >> user2;
cout << "Give User 3 a name!" << endl;
cin >> user3;
}
party_component *i_party = new party(i_party_name, i_party_size);
cout << "\nDid your party eat at...\n1. Burger Places\n2. Taco Places\n3. Pizza Places" << endl;
cin >> user_fastfood_option;
while (condition)
{
if (user_option == "q" || user_option == "Q")
{
cout << "Thank you for using SPLICE." << endl;
condition = false;
break;
}
else
{
if (user_fastfood_option == 1) // BURGER SELECTED
{
//display_burger_places();
rest_type = display_burger_places();
break;
}
else if (user_fastfood_option == 2) // TACO SELECTED
{
rest_type = display_taco_places();
break;
}
else if (user_fastfood_option == 3) // PIZZA SELECTED
{
rest_type = display_pizza_places();
break;
}
else
{
cout << "Invalid Input!" << endl;
condition = false;
break;
}
}
}
if (rest_type == "McDonalds")
{
// BIG MAC
menu_component *big_mac = new menu_items_mcdonalds(1, "Big Mac", "Mouthwatering perfection starts with two 100% pure beef patties and Big Mac sauce sandwiched between a sesame seed bun. It’s topped off with pickles, crisp shredded lettuce, finely chopped onion and American cheese.", 3.99);
// MCNUGGETS 4 PIECE
menu_component *mcnuggets_4_piece = new menu_items_mcdonalds(2, "McNuggets 4 Piece", "Our tender, juicy Chicken McNuggets® are made with 100% white meat chicken and no artificial colors, flavors or preservatives.", 1.99);
menu_component *mcnuggets_10_piece = new menu_items_mcdonalds(3, "McNuggets 10 Piece", "Our tender, juicy Chicken McNuggets® are made with 100% white meat chicken and no artificial colors, flavors or preservatives.", 4.49);
// ICED COFFEE
menu_component *iced_coffee_small = new menu_items_mcdonalds(4, "Iced Coffee (Small)", "McCafe Iced Coffee is refreshingly cool and made with 100% Arabica beans, cream and your choice of flavored coffee syrup – caramel, hazelnut, French vanilla and sugar-free French vanilla.", 1.39);
menu_component *iced_coffee_medium = new menu_items_mcdonalds(5, "Iced Coffee (Medium)", "McCafe Iced Coffee is refreshingly cool and made with 100% Arabica beans, cream and your choice of flavored coffee syrup – caramel, hazelnut, French vanilla and sugar - free French vanilla.", 1.79);
menu_component *iced_coffee_large = new menu_items_mcdonalds(6, "Iced Coffee (Large)", "McCafe Iced Coffee is refreshingly cool and made with 100% Arabica beans, cream and your choice of flavored coffee syrup – caramel, hazelnut, French vanilla and sugar - free French vanilla.", 1.99);
//FRIES
menu_component *fries_small = new menu_items_mcdonalds(7, "Fries Small", "Our World Famous Fries® are made with premium potatoes such as the Russet Burbank and the Shepody. With 0g of trans fat per labeled serving, these epic fries are crispy and golden on the outside and fluffy on the inside.", 1.39);
menu_component *fries_medium = new menu_items_mcdonalds(8, "Fries Medium", "Our World Famous Fries® are made with premium potatoes such as the Russet Burbank and the Shepody. With 0g of trans fat per labeled serving, these epic fries are crispy and golden on the outside and fluffy on the inside.", 1.79);
menu_component *fries_large = new menu_items_mcdonalds(9, "Fries Large", "Our World Famous Fries® are made with premium potatoes such as the Russet Burbank and the Shepody. With 0g of trans fat per labeled serving, these epic fries are crispy and golden on the outside and fluffy on the inside.", 1.89);
vector<menu_component *> i_mcdonalds_cart;
i_mcdonalds_cart.push_back(big_mac);
i_mcdonalds_cart.push_back(mcnuggets_4_piece);
i_mcdonalds_cart.push_back(mcnuggets_10_piece);
i_mcdonalds_cart.push_back(iced_coffee_small);
i_mcdonalds_cart.push_back(iced_coffee_medium);
i_mcdonalds_cart.push_back(iced_coffee_large);
i_mcdonalds_cart.push_back(fries_small);
i_mcdonalds_cart.push_back(fries_large);
int mcdonalds_item_number = 0;
int mcdonalds_item_number_1 = 0;
if (i_party_size == 1)
{
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> mcdonalds_item_number;
cart_component *i_user1_cart_items = new cart_items(i_mcdonalds_cart.at(mcdonalds_item_number - 1));
bool mcdonalds_condition = true;
while (mcdonalds_condition)
{
cin >> mcdonalds_item_number_1;
if (mcdonalds_item_number_1 == 0)
{
mcdonalds_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_mcdonalds_cart.at(mcdonalds_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
}
else if (i_party_size == 2)
{
//USER 1 CART FOR PARTY OF 2
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> mcdonalds_item_number;
cart_component *i_user1_cart_items = new cart_items(i_mcdonalds_cart.at(mcdonalds_item_number - 1));
bool mcdonalds_condition = true;
while (mcdonalds_condition)
{
cin >> mcdonalds_item_number_1;
if (mcdonalds_item_number_1 == 0)
{
mcdonalds_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_mcdonalds_cart.at(mcdonalds_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
//USER 2 CART FOR PARTY OF 2
party_component *i_user2 = new user(user2);
cart_component *i_user2_cart = new user_cart(i_user2);
cout << "For " << user2 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> mcdonalds_item_number;
cart_component *i_user2_cart_items = new cart_items(i_mcdonalds_cart.at(mcdonalds_item_number - 1));
while (mcdonalds_condition)
{
cin >> mcdonalds_item_number_1;
if (mcdonalds_item_number_1 == 0)
{
mcdonalds_item_number_1 = false;
break;
}
i_user2_cart_items->add_to_cart(i_mcdonalds_cart.at(mcdonalds_item_number_1 - 1));
}
i_user2_cart->add(i_user2_cart_items);
i_user2_cart->display();
}
else if (i_party_size == 3)
{
//USER 1 CART FOR PARTY OF 2
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> mcdonalds_item_number;
cart_component *i_user1_cart_items = new cart_items(i_mcdonalds_cart.at(mcdonalds_item_number - 1));
bool mcdonalds_condition = true;
while (mcdonalds_condition)
{
cin >> mcdonalds_item_number_1;
if (mcdonalds_item_number_1 == 0)
{
mcdonalds_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_mcdonalds_cart.at(mcdonalds_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
//USER 2 CART FOR PARTY OF 2
party_component *i_user2 = new user(user2);
cart_component *i_user2_cart = new user_cart(i_user2);
cout << "For " << user2 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> mcdonalds_item_number;
cart_component *i_user2_cart_items = new cart_items(i_mcdonalds_cart.at(mcdonalds_item_number - 1));
while (mcdonalds_condition)
{
cin >> mcdonalds_item_number_1;
if (mcdonalds_item_number_1 == 0)
{
mcdonalds_item_number_1 = false;
break;
}
i_user2_cart_items->add_to_cart(i_mcdonalds_cart.at(mcdonalds_item_number_1 - 1));
}
i_user2_cart->add(i_user2_cart_items);
i_user2_cart->display();
//USER 3 CART FOR PARTY OF 3
party_component *i_user3 = new user(user3);
cart_component *i_user3_cart = new user_cart(i_user3);
cout << "For " << user3 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> mcdonalds_item_number;
cart_component *i_user3_cart_items = new cart_items(i_mcdonalds_cart.at(mcdonalds_item_number - 1));
while (mcdonalds_condition)
{
cin >> mcdonalds_item_number_1;
if (mcdonalds_item_number_1 == 0)
{
mcdonalds_item_number_1 = false;
break;
}
i_user3_cart_items->add_to_cart(i_mcdonalds_cart.at(mcdonalds_item_number_1 - 1));
}
i_user3_cart->add(i_user3_cart_items);
i_user3_cart->display();
}
}
else if (rest_type == "Chick Fil A")
{
menu_component *chickfila_menu_customer_favorites = new menu_chickfila("Chick-Fil-A's Menu, Customer Favorites", "Following Options are the Most Popular Items at Chick-Fil-A");
// REGULAR CHICKEN SANDWICH ENTREE
menu_component *chicken_sandwhich = new menu_items_chickfila(1, "Chicken Sandwich", "A boneless breast of chicken seasoned to perfection, hand-breaded, pressure cooked in 100% refined peanut oil and served on a toasted, buttered bun with dill pickle chips. Gluten-free bun or multigrain bun also available at an additional cost.", 4.29);
//SPICY CHICKEN SANDWICH ENTREE
menu_component *spicy_chicken_sandwhich = new menu_items_chickfila(2, "Spicy Chicken Sandwich", "A boneless breast of chicken seasoned with a spicy blend of peppers, hand-breaded, pressure cooked in 100% refined peanut oil and served on a toasted, buttered bun with dill pickle chips. Gluten-free bun or multigrain bun also available at an additional cost.", 4.65);
// CHICK FIL A NUGGETS (ORIGINAL) 4 PIECE
menu_component *chickfila_nuggets_4_piece = new menu_items_chickfila(3, "Chick-fil-a Nuggets 4 Piece", "Bite-sized pieces of boneless chicken breast, seasoned to perfection, freshly-breaded and pressure cooked in 100% refined peanut oil. Available with choice of dipping sauce.", 2.20);
// CHICK FIL A NUGGETS (ORIGINAL) 8 PIECE
menu_component *chickfila_nuggets_8_piece = new menu_items_chickfila(4, "Chick-fil-a Nuggets 8 Piece", "Bite-sized pieces of boneless chicken breast, seasoned to perfection, freshly-breaded and pressure cooked in 100% refined peanut oil. Available with choice of dipping sauce.", 4.39);
// CHICK FIL A NUGGETS (ORIGINAL) 12 PIECE
menu_component *chickfila_nuggets_12_piece = new menu_items_chickfila(5, "Chick-fil-a Nuggets 12 Piece", "Bite-sized pieces of boneless chicken breast, seasoned to perfection, freshly-breaded and pressure cooked in 100% refined peanut oil. Available with choice of dipping sauce.", 6.29);
//WAFFLE FRIES
menu_component *waffle_fries_small = new menu_items_chickfila(6, "Waffle Potato Fries (Small)", "Waffle-cut potatoes cooked in canola oil until crispy outside and tender inside. Lightly sprinkled with Sea Salt.", 1.95);
menu_component *waffle_fries_medium = new menu_items_chickfila(7, "Waffle Potato Fries (Medium)", "Waffle-cut potatoes cooked in canola oil until crispy outside and tender inside. Lightly sprinkled with Sea Salt.", 2.25);
menu_component *waffle_fries_large = new menu_items_chickfila(8, "Waffle Potato Fries (Large)", "Waffle-cut potatoes cooked in canola oil until crispy outside and tender inside. Lightly sprinkled with Sea Salt.", 2.55);
//MAC & CHEESE
menu_component *mac_and_cheese_small = new menu_items_chickfila(9, "Mac and Cheese (Small)", "A classic macaroni and cheese recipe featuring a special blend of cheeses including Parmesan, Cheddar, and Romano. Baked in-restaurant to form a crispy top layer of baked cheese.", 2.89);
menu_component *mac_and_cheese_medium = new menu_items_chickfila(10, "Mac and Cheese (Medium)", "A classic macaroni and cheese recipe featuring a special blend of cheeses including Parmesan, Cheddar, and Romano. Baked in-restaurant to form a crispy top layer of baked cheese.", 3.65);
vector<menu_component *> i_chickfila_cart;
i_chickfila_cart.push_back(chicken_sandwhich);
i_chickfila_cart.push_back(spicy_chicken_sandwhich);
i_chickfila_cart.push_back(chickfila_nuggets_4_piece);
i_chickfila_cart.push_back(chickfila_nuggets_8_piece);
i_chickfila_cart.push_back(chickfila_nuggets_12_piece);
i_chickfila_cart.push_back(waffle_fries_small);
i_chickfila_cart.push_back(waffle_fries_medium);
i_chickfila_cart.push_back(waffle_fries_large);
i_chickfila_cart.push_back(mac_and_cheese_small);
i_chickfila_cart.push_back(mac_and_cheese_medium);
int chickfila_item_number = 0;
int chickfila_item_number_1 = 0;
if (i_party_size == 1)
{
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> chickfila_item_number;
cart_component *i_user1_cart_items = new cart_items(i_chickfila_cart.at(chickfila_item_number - 1));
bool chickfila_condition = true;
while (chickfila_condition)
{
cin >> chickfila_item_number_1;
if (chickfila_item_number_1 == 0)
{
chickfila_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_chickfila_cart.at(chickfila_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
}
else if (i_party_size == 2)
{
//USER 1 CART FOR PARTY OF 2
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> chickfila_item_number;
cart_component *i_user1_cart_items = new cart_items(i_chickfila_cart.at(chickfila_item_number - 1));
bool chickfila_condition = true;
while (chickfila_condition)
{
cin >> chickfila_item_number_1;
if (chickfila_item_number_1 == 0)
{
chickfila_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_chickfila_cart.at(chickfila_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
//USER 2 CART FOR PARTY OF 2
party_component *i_user2 = new user(user2);
cart_component *i_user2_cart = new user_cart(i_user2);
cout << "For " << user2 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> chickfila_item_number;
cart_component *i_user2_cart_items = new cart_items(i_chickfila_cart.at(chickfila_item_number - 1));
while (chickfila_condition)
{
cin >> chickfila_item_number_1;
if (chickfila_item_number_1 == 0)
{
chickfila_item_number_1 = false;
break;
}
i_user2_cart_items->add_to_cart(i_chickfila_cart.at(chickfila_item_number_1 - 1));
}
i_user2_cart->add(i_user2_cart_items);
i_user2_cart->display();
}
else if (i_party_size == 3)
{
//USER 1 CART FOR PARTY OF 2
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> chickfila_item_number;
cart_component *i_user1_cart_items = new cart_items(i_chickfila_cart.at(chickfila_item_number - 1));
bool chickfila_condition = true;
while (chickfila_condition)
{
cin >> chickfila_item_number_1;
if (chickfila_item_number_1 == 0)
{
chickfila_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_chickfila_cart.at(chickfila_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
//USER 2 CART FOR PARTY OF 2
party_component *i_user2 = new user(user2);
cart_component *i_user2_cart = new user_cart(i_user2);
cout << "For " << user2 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> chickfila_item_number;
cart_component *i_user2_cart_items = new cart_items(i_chickfila_cart.at(chickfila_item_number - 1));
while (chickfila_condition)
{
cin >> chickfila_item_number_1;
if (chickfila_item_number_1 == 0)
{
chickfila_item_number_1 = false;
break;
}
i_user2_cart_items->add_to_cart(i_chickfila_cart.at(chickfila_item_number_1 - 1));
}
i_user2_cart->add(i_user2_cart_items);
i_user2_cart->display();
//USER 3 CART FOR PARTY OF 3
party_component *i_user3 = new user(user3);
cart_component *i_user3_cart = new user_cart(i_user3);
cout << "For " << user3 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> chickfila_item_number;
cart_component *i_user3_cart_items = new cart_items(i_chickfila_cart.at(chickfila_item_number - 1));
while (chickfila_condition)
{
cin >> chickfila_item_number_1;
if (chickfila_item_number_1 == 0)
{
chickfila_item_number_1 = false;
break;
}
i_user3_cart_items->add_to_cart(i_chickfila_cart.at(chickfila_item_number_1 - 1));
}
i_user3_cart->add(i_user3_cart_items);
i_user3_cart->display();
}
}
else if (rest_type == "In N Out")
{
menu_component *innouts_menu_customer_favorites = new menu_innout("In-N-Out's Menu, Customer Favorites", "Following Options are the Most Popular Items at In-N-Out");
// DOUBLE DOUBLE
menu_component *double_double_burger = new menu_items_innout(1, "Double Double", "Two 100% pure beef patties, hand lettuce, tomato, spread, two slices of american cheese, with or without onions, stacked high on a freshly baked bun.", 3.45);
// CHEESEBURGER
menu_component *cheeseburger = new menu_items_innout(2, "Cheeseburger", "100% Pure beef patty, lettuce, tomato, spread, one slice of american cheese, with or without onions, on a freshly baked bun.", 2.40);
//HAMBURGER
menu_component *hamburger = new menu_items_innout(3, "Hamburger", "100% Pure patty, lettuce, tomato, spread, with or without onions, on a freshly baked bun.", 2.10);
// FRENCH FRIES
menu_component *french_fries = new menu_items_innout(4, "French Fries", "Fresh cut potatoes prepared in 100% vegetable oil.", 1.60);
//SHAKES
menu_component *shake_strawberry = new menu_items_innout(5, "Strawberry Shake", "Strawberry Shake made with 100% real ice cream.", 2.15);
menu_component *shake_chocolate = new menu_items_innout(6, "Chocolate Shake", "Chocolate Shake made with 100% real ice cream.", 2.15);
menu_component *shake_vanilla = new menu_items_innout(7, "Vanilla Shake", "Vanilla Shake made with 100% real ice cream.", 2.15);
//COFFEE
menu_component *coffee = new menu_items_innout(8, "Coffee", "Hot Brewed Coffee", 1.35);
//MILK
menu_component *milk = new menu_items_innout(9, "Milk", "Refreshing Milk", 0.99);
//SOFT DRINK MEDIUM
menu_component *soft_drink_medium = new menu_items_innout(10, "Soft Drink (Medium)", "Refreshing selctions include Coca-Cola, Diet Coke, 7UP, Dr. Pepper, Root Beer, Lemonade, Minute Maid Light Lemonade, and Iced Tea ", 1.65);
vector<menu_component *> i_innout_cart;
i_innout_cart.push_back(double_double_burger);
i_innout_cart.push_back(cheeseburger);
i_innout_cart.push_back(hamburger);
i_innout_cart.push_back(french_fries);
i_innout_cart.push_back(shake_strawberry);
i_innout_cart.push_back(shake_chocolate);
i_innout_cart.push_back(shake_vanilla);
i_innout_cart.push_back(coffee);
i_innout_cart.push_back(milk);
i_innout_cart.push_back(soft_drink_medium);
int innout_item_number = 0;
int innout_item_number_1 = 0;
if (i_party_size == 1)
{
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> innout_item_number;
cart_component *i_user1_cart_items = new cart_items(i_innout_cart.at(innout_item_number - 1));
bool innout_condition = true;
while (innout_condition)
{
cin >> innout_item_number_1;
if (innout_item_number_1 == 0)
{
innout_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_innout_cart.at(innout_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
}
else if (i_party_size == 2)
{
//USER 1 CART FOR PARTY OF 2
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> innout_item_number;
cart_component *i_user1_cart_items = new cart_items(i_innout_cart.at(innout_item_number - 1));
bool innout_condition = true;
while (innout_condition)
{
cin >> innout_item_number_1;
if (innout_item_number_1 == 0)
{
innout_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_innout_cart.at(innout_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
//USER 2 CART FOR PARTY OF 2
party_component *i_user2 = new user(user2);
cart_component *i_user2_cart = new user_cart(i_user2);
cout << "For " << user2 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> innout_item_number;
cart_component *i_user2_cart_items = new cart_items(i_innout_cart.at(innout_item_number - 1));
while (innout_condition)
{
cin >> innout_item_number_1;
if (innout_item_number_1 == 0)
{
innout_item_number_1 = false;
break;
}
i_user2_cart_items->add_to_cart(i_innout_cart.at(innout_item_number_1 - 1));
}
i_user2_cart->add(i_user2_cart_items);
i_user2_cart->display();
}
else if (i_party_size == 3)
{
//USER 1 CART FOR PARTY OF 2
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> innout_item_number;
cart_component *i_user1_cart_items = new cart_items(i_innout_cart.at(innout_item_number - 1));
bool innout_condition = true;
while (innout_condition)
{
cin >> innout_item_number_1;
if (innout_item_number_1 == 0)
{
innout_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_innout_cart.at(innout_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
//USER 2 CART FOR PARTY OF 2
party_component *i_user2 = new user(user2);
cart_component *i_user2_cart = new user_cart(i_user2);
cout << "For " << user2 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> innout_item_number;
cart_component *i_user2_cart_items = new cart_items(i_innout_cart.at(innout_item_number - 1));
while (innout_condition)
{
cin >> innout_item_number_1;
if (innout_item_number_1 == 0)
{
innout_item_number_1 = false;
break;
}
i_user2_cart_items->add_to_cart(i_innout_cart.at(innout_item_number_1 - 1));
}
i_user2_cart->add(i_user2_cart_items);
i_user2_cart->display();
//USER 3 CART FOR PARTY OF 3
party_component *i_user3 = new user(user3);
cart_component *i_user3_cart = new user_cart(i_user3);
cout << "For " << user3 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> innout_item_number;
cart_component *i_user3_cart_items = new cart_items(i_innout_cart.at(innout_item_number - 1));
while (innout_condition)
{
cin >> innout_item_number_1;
if (innout_item_number_1 == 0)
{
innout_item_number_1 = false;
break;
}
i_user3_cart_items->add_to_cart(i_innout_cart.at(innout_item_number_1 - 1));
}
i_user3_cart->add(i_user3_cart_items);
i_user3_cart->display();
}
}
else if (rest_type == "Taco Bell")
{
menu_component *tacobells_menu_customer_favorites = new menu_tacobell("Taco Bell's Menu, Customer Favorites", "Following Options are the Most Popular Items at Taco Bell");
// SOFT TACO
menu_component *soft_taco = new menu_items_tacobell(1, "Soft Taco", "Soft Taco has a warm, flour tortilla with seasoned beef, lettuce, and real cheddar cheese", 1.29);
// CRUNCHY TACO
menu_component *crunchy_taco = new menu_items_tacobell(2, "Crunchy Taco", "Crunchy Taco has a crunchy corn body and a wicked haymaker with seasoned beef, lettuce, and real cheddar cheese", 1.29);
//NACHO CHEESE DORITOS LOCOS TACO
menu_component *nacho_cheese_dorito_locos_taco = new menu_items_tacobell(3, "Nacho Cheese Dorito Locos Taco", "A crunchy taco shell made from Nacho Cheese Doritos® is filled with seasoned beef, crispy lettuce, and shredded cheddar cheese.", 1.89);
// CRUNCHY TACO SUPREME
menu_component *crunchy_taco_supreme = new menu_items_tacobell(4, "Crunchy Taco Supreme", "Crunchy Taco has a crunchy corn body and a wicked haymaker with seasoned beef, lettuce, cheddar cheese, reduced fat sour cream, and diced tomatoes", 1.79);
//BEAN BURRITO
menu_component *bean_burrito = new menu_items_tacobell(5, "Bean Burrito", "Bean Burrito stuffed full of warm refried beans, real cheddar cheese, diced onions, and red sauce still carries on the spirit of old adventuring pioneers today", 1.29);
//QUESARITO
menu_component *quesarito = new menu_items_tacobell(6, "Quesarito", "The Quesarito is a quesadilla that is treated like a burrito, full of seasoned beef, creamy chipotle sauce, reduced fat sour cream, nacho cheese sauce, and seasoned rice", 3.19);
//CRUNCH WRAP SUPREME
menu_component *crunchwrap_supreme = new menu_items_tacobell(7, "Crunchwrap Supreme", "A flour tortilla layered with seasoned beef, warm nacho cheese sauce, a crispy tostada shell, crispy lettuce, ripe tomatoes and topped with cool reduced fat sour cream all wrapped in our signature Crunchwrap fold and grilled to go.", 3.69);
//NACHOS BELLGRANDE
menu_component *nachos_bellgrande = new menu_items_tacobell(8, "Nachos Bellgrande", "A portion of crispy tortilla chips topped with warm nacho cheese sauce, refried beans, seasoned beef, ripe tomatoes and cool reduced fat sour cream.", 3.69);
//BAJA BLAST FREEZE
menu_component *baja_blast_freeze = new menu_items_tacobell(9, "Baja Blast Freeze", "A sweet, freeze made with Mountain Dew Baja Blast", 2.69);
//DRAGON FRUIT FREEZE
menu_component *dragon_fruit_freeze = new menu_items_tacobell(10, "Dragon Fruit Freeze", "A sweet, tropical freeze that's almost too pretty to drink", 2.69);
vector<menu_component *> i_tacobell_cart;
i_tacobell_cart.push_back(soft_taco);
i_tacobell_cart.push_back(crunchy_taco);
i_tacobell_cart.push_back(nacho_cheese_dorito_locos_taco);
i_tacobell_cart.push_back(crunchy_taco_supreme);
i_tacobell_cart.push_back(bean_burrito);
i_tacobell_cart.push_back(quesarito);
i_tacobell_cart.push_back(crunchwrap_supreme);
i_tacobell_cart.push_back(nachos_bellgrande);
i_tacobell_cart.push_back(baja_blast_freeze);
i_tacobell_cart.push_back(dragon_fruit_freeze);
int tacobell_item_number = 0;
int tacobell_item_number_1 = 0;
if (i_party_size == 1)
{
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> tacobell_item_number;
cart_component *i_user1_cart_items = new cart_items(i_tacobell_cart.at(tacobell_item_number - 1));
bool tacobell_condition = true;
while (tacobell_condition)
{
cin >> tacobell_item_number_1;
if (tacobell_item_number_1 == 0)
{
tacobell_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_tacobell_cart.at(tacobell_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
}
else if (i_party_size == 2)
{
//USER 1 CART FOR PARTY OF 2
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> tacobell_item_number;
cart_component *i_user1_cart_items = new cart_items(i_tacobell_cart.at(tacobell_item_number - 1));
bool tacobell_condition = true;
while (tacobell_condition)
{
cin >> tacobell_item_number_1;
if (tacobell_item_number_1 == 0)
{
tacobell_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_tacobell_cart.at(tacobell_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
//USER 2 CART FOR PARTY OF 2
party_component *i_user2 = new user(user2);
cart_component *i_user2_cart = new user_cart(i_user2);
cout << "For " << user2 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> tacobell_item_number;
cart_component *i_user2_cart_items = new cart_items(i_tacobell_cart.at(tacobell_item_number - 1));
while (tacobell_condition)
{
cin >> tacobell_item_number_1;
if (tacobell_item_number_1 == 0)
{
tacobell_item_number_1 = false;
break;
}
i_user2_cart_items->add_to_cart(i_tacobell_cart.at(tacobell_item_number_1 - 1));
}
i_user2_cart->add(i_user2_cart_items);
i_user2_cart->display();
}
else if (i_party_size == 3)
{
//USER 1 CART FOR PARTY OF 2
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> tacobell_item_number;
cart_component *i_user1_cart_items = new cart_items(i_tacobell_cart.at(tacobell_item_number - 1));
bool tacobell_condition = true;
while (tacobell_condition)
{
cin >> tacobell_item_number_1;
if (tacobell_item_number_1 == 0)
{
tacobell_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_tacobell_cart.at(tacobell_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
//USER 2 CART FOR PARTY OF 2
party_component *i_user2 = new user(user2);
cart_component *i_user2_cart = new user_cart(i_user2);
cout << "For " << user2 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> tacobell_item_number;
cart_component *i_user2_cart_items = new cart_items(i_tacobell_cart.at(tacobell_item_number - 1));
while (tacobell_condition)
{
cin >> tacobell_item_number_1;
if (tacobell_item_number_1 == 0)
{
tacobell_item_number_1 = false;
break;
}
i_user2_cart_items->add_to_cart(i_tacobell_cart.at(tacobell_item_number_1 - 1));
}
i_user2_cart->add(i_user2_cart_items);
i_user2_cart->display();
//USER 3 CART FOR PARTY OF 3
party_component *i_user3 = new user(user3);
cart_component *i_user3_cart = new user_cart(i_user3);
cout << "For " << user3 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> tacobell_item_number;
cart_component *i_user3_cart_items = new cart_items(i_tacobell_cart.at(tacobell_item_number - 1));
while (tacobell_condition)
{
cin >> tacobell_item_number_1;
if (tacobell_item_number_1 == 0)
{
tacobell_item_number_1 = false;
break;
}
i_user3_cart_items->add_to_cart(i_tacobell_cart.at(tacobell_item_number_1 - 1));
}
i_user3_cart->add(i_user3_cart_items);
i_user3_cart->display();
}
}
else if (rest_type == "El Pollo Loco")
{
menu_component *elpollolocos_menu_customer_favorites = new menu_elpolloloco("El Pollo Loco's Menu, Customer Favorites", "Following Options are the Most Popular Items at El Pollo Loco");
// CHICKEN AVOCADO TACO
menu_component *chicken_avocado_taco = new menu_items_elpolloloco(1, "Chicken Avocado Taco", "Fire-grilled chicken, avocado, shredded lettuce, queso fresco, and pico on a handcrafted tortilla and finished with creamy cilantro dressing.", 2.99);
// CHICKENLESS POLLO TACO
menu_component *chickenless_pollo_taco = new menu_items_elpolloloco(2, "Chickenless Pollo Taco", "Tender shreds of plant-based protein cooked in adobo-- a slow simmered sauce of fire roasted peppers, onions and tomatoes then topped with queso fresco, shredded lettuce, and avocado on a handcrafted tortilla.", 2.99);
//CALIFORNIA QUESO BURRITO
menu_component *california_queso_burrito = new menu_items_elpolloloco(3, "Chicken Queso Burrito", "The California Queso Burrito has tender pieces of our famous fire-grilled chicken, signature Tapatio fries, fresh handmade guacamole, pinto beans, queso blanco and house-made pico de gallo. All this goodness comes wrapped in a warm flour tortilla.", 6.99);
// CHICKEN TINGA BURRITO
menu_component *chicken_tinga_burrito = new menu_items_elpolloloco(4, "Chicken Tinga Burrito", "The Chicken Tinga Burrito has savory, lightly smoky chicken tinga, seasoned rice, pinto beans, fresh sliced avocado, and is topped with queso fresco and house-made pico de gallo – all wrapped in a warm flour tortilla.", 7.19);
//ORIGINAL POLLO BOWL
menu_component *original_pollo_bowl = new menu_items_elpolloloco(5, "Original Pollo Bowl", "Our chicken breast is fire-grilled to perfection then chopped and added to slow-simmered pinto beans, rice, diced onions, fresh cilantro and pico de gallo salsa.", 4.99);
//DOUBLE CHICKEN BOWL
menu_component *double_chicken_bowl = new menu_items_elpolloloco(6, "Double Chicken Bowl", "Double up on a double portion of delicious citrus-marinated chopped chicken breast on top of authentic pinto beans, rice, cabbage and garnished with sour cream, shredded jack cheese, avocado slices and pico de gallo salsa.", 7.79);
//CHIPS AND GUAC
menu_component *chips_and_guacamole_small = new menu_items_elpolloloco(7, "Small Chips & Guacamole", "Made fresh daily, our new guacamole is loaded with chunks of avocado and paired with our authentic tortilla chips.", 2.49);
menu_component *chips_and_guacamole_regular = new menu_items_elpolloloco(8, "Regular Chip & Guacamole", "What's better than our white corn tortilla chips, hand salted and made fresh daily? Our tortilla chips with freshly, hand-made guacamole, of course.", 3.99);
//DRINKS
menu_component *drink_regular = new menu_items_elpolloloco(9, "Drink (Regular)", "Refreshing beverage including Coca-cola, Diet Coke, Cherry Coke, Sprite, Dr. Pepper, Strawberry Lemonade, Hi-C Fruit Punch, Fanta Orange, Fuze Raspberry Iced Tea, Passion Fruit Mango Iced Tea, Unsweetened Ice Tea, Barq's Root Beer.", 2.19);
menu_component *drink_large = new menu_items_elpolloloco(10, "Drink (Large)", "Refreshing beverage including Coca-cola, Diet Coke, Cherry Coke, Sprite, Dr. Pepper, Strawberry Lemonade, Hi-C Fruit Punch, Fanta Orange, Fuze Raspberry Iced Tea, Passion Fruit Mango Iced Tea, Unsweetened Ice Tea, Barq's Root Beer.", 2.39);
vector<menu_component *> i_elpolloloco_cart;
i_elpolloloco_cart.push_back(chicken_avocado_taco);
i_elpolloloco_cart.push_back(chickenless_pollo_taco);
i_elpolloloco_cart.push_back(california_queso_burrito);
i_elpolloloco_cart.push_back(chicken_tinga_burrito);
i_elpolloloco_cart.push_back(original_pollo_bowl);
i_elpolloloco_cart.push_back(double_chicken_bowl);
i_elpolloloco_cart.push_back(chips_and_guacamole_small);
i_elpolloloco_cart.push_back(chips_and_guacamole_regular);
i_elpolloloco_cart.push_back(drink_regular);
i_elpolloloco_cart.push_back(drink_large);
int elpolloloco_item_number = 0;
int elpolloloco_item_number_1 = 0;
if (i_party_size == 1)
{
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> elpolloloco_item_number;
cart_component *i_user1_cart_items = new cart_items(i_elpolloloco_cart.at(elpolloloco_item_number - 1));
bool elpolloloco_condition = true;
while (elpolloloco_condition)
{
cin >> elpolloloco_item_number_1;
if (elpolloloco_item_number_1 == 0)
{
elpolloloco_item_number_1 = false;
break;
}
i_user1_cart_items->add_to_cart(i_elpolloloco_cart.at(elpolloloco_item_number_1 - 1));
}
i_user1_cart->add(i_user1_cart_items);
i_user1_cart->display();
}
else if (i_party_size == 2)
{
//USER 1 CART FOR PARTY OF 2
party_component *i_user1 = new user(user1);
cart_component *i_user1_cart = new user_cart(i_user1);
cout << "For " << user1 << ", what would you like to add to their cart?" << endl;
cout << "Please enter the item number from the restaurant you have selected." << endl;
cout << "After all items have been added, press '0'." << endl;
cin >> elpolloloco_item_number;