#include #include #include using namespace std; int main(){ struct menu { string name; string toppings; }; const menu a[]{ {"Lumpia", "Pork, Carrots, Celery, Green Onions, in an Egg Roll"}, {"Chicken Wings", "Choice of BBQ, Garlic Parmesan, Buffalo, or Lemon Pepper"}, {"Mozzarella Sticks", "Fried Mozzarella Cheese"}, {"Pigs in a Blanket", "Pork Sausages wrapped in Biscuit Bread"} }; const menu e[]{ {"Cheeseburger", "Beef Patty, American Cheese, Lettuce, Tomato, and Aioli Sauce on a Sesame Seed Bun"}, {"Bacon-Burger", "Beef Patty, Bacon, Lettuce, Crispy Onion Straws, and BBQ Sauce on a Sesame Seed Bun"}, {"Tteokbokki", "Cheese, Gochujang on Rice Cakes"}, {"Bratwurst", "German-Style Pork Sausuges on a Roll"}, {"Schnitzel", "Breaded Pork Steak served with French Fries and Lemon"} }; const menu d[]{ {"Cheesecake", "Cream Cheese, Graham Cracker Crust, Whipped Cream, with Cherries"}, {"Lava Cake", "Chocolate Cake with Hot Fudge Center"}, {"Tiramisu", "Lady Fingers, Coffee, Whipped Cream"}, {"Skillet-Cookie", "Chocolate Chip Cookie Baked in a Skillet"} }; const size_t ap {size(a)}; const size_t en {size(e)}; const size_t de {size(d)}; string look {""}; cout << "What menu would you like to see?\n" << "Appetizer,\n" << "Entree,\n" << "Dessert,\n"; cin >> look; if (!cin) { cerr << "Sorry, could not understand input.\n"; return EXIT_FAILURE; } if (look == "Appetizer"){ for(int i {0}; i < ap; i++){ cout << a[i].name << ", " << a[i].toppings << "\n"; } return EXIT_SUCCESS; } else if (look == "Entree"){ for(int i {0}; i < en; i++){ cout << e[i].name << ", " << e[i].toppings << "\n"; } return EXIT_SUCCESS; } else if (look == "Dessert"){ for(int i {0}; i < de; i++){ cout << d[i].name << ", " << d[i].toppings << "\n"; } return EXIT_SUCCESS; } else { cerr << "Sorry, Could not understand input."; return EXIT_FAILURE; } }