Question: Someone please help code this! Lab 8 with design.cpp Homework Lab 8 Nested If statements Write the nested decision logic to print the recommended meal

 Someone please help code this! Lab 8 with design.cpp Homework Lab8 Nested If statements Write the nested decision logic to print therecommended meal based on the user's choices for Restaurant and Load giventhe table shown below: Restaurant Preference Meal (M)cDonald's (Beef (C)hicken (Fish (S)aladQuarter Pounder Chicken McNuggets Filet-o-Fish Side Salad (0)utback (B)eef (C)hicken (F)ish (S)aladRibeye Alice Springs Chicken Grilled Tilapia Aussie Cobb Salad (G)ibsons (B)eef (C)hicken(F)ish (S)alad Bone-in Filet Mignon Whole Spit-Roasted Chicken Grilled Norwegian Salmon Alaskan

Someone please help code this! Lab 8 with design.cpp

Homework Lab 8 Nested If statements Write the nested decision logic to print the recommended meal based on the user's choices for Restaurant and Load given the table shown below: Restaurant Preference Meal (M)cDonald's (Beef (C)hicken (Fish (S)alad Quarter Pounder Chicken McNuggets Filet-o-Fish Side Salad (0)utback (B)eef (C)hicken (F)ish (S)alad Ribeye Alice Springs Chicken Grilled Tilapia Aussie Cobb Salad (G)ibsons (B)eef (C)hicken (F)ish (S)alad Bone-in Filet Mignon Whole Spit-Roasted Chicken Grilled Norwegian Salmon Alaskan King Crab Salad For example, if the user chooses (M)cDonald's' and '(B)eef' then the appropriate response should be "Quarter Pounder" If the user makes any selection other than B, b, c, C, F, f, s, or s then the approprate response should be: "You entered an invalid meal preference selection: X", where X is the bad entry that was made. #include #include using namespace std; 1/ for toupper() int main() { // Declare program variables for user input. char restaurant Choice; char mealPreference; 1/ Prompt and get user's choice for restaurant. cout > restaurant Choice; // Ensure restaurant Choice is uppercase restaurant Choice = toupper(restaurantchoice); 1/ Prompt and get user's choice for meal preference. cout > mealPreference; // Ensure mealPreference is uppercase mealpreference = toupper(mealPreference); cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!