Question: PART B: (Restaurant Program) Options available for food items: OPTION CATEGORY 1 Cheeseburger 2 Hotdog 3 Chicken Wings 4 Chili 5 Salad Write a program

PART B: (Restaurant Program)

Options available for food items:

OPTION

CATEGORY

1

Cheeseburger

2

Hotdog

3

Chicken Wings

4

Chili

5

Salad

Write a program for Mels Diner that ask customers to select from the list of food categories in the table above. The Menu will be presented to customers upon entering the restaurant. After a valid food category is selected, then the customer must select from the following options:

Options available after selecting a valid Food Category:

OPTION

SELECTION

1

No extras

2

Drink

3

Drink + Side

If the customer enters any option that is not in the tables above, the program should display Invalid Option Selected. You must use the switch statement in your program to solve this problem. At the end of the program, use the assert function to check if valid options were selected.

The following is a sample output

1: Cheeseburger

2: Hotdog

3: Chicken Wings

4: Chili

5: Salad

Select your main dish from the options above: 3

You have selected Chicken Wings.

1: No extras

2: Drink

3: Drink + Side

Select an extra from the items above: 2

You have selected Chicken Wings and Drink + Side.

Thanks for dining with us!

Press any key to continue

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!