Question: Write a C++ program for a restaurant ordering system. The restaurant menu has 5 items to offer, numbered from 1 to 5, with their portion

Write a C++ program for a restaurant ordering system. The restaurant menu has 5 items to offer, numbered from 1 to 5, with their portion prices (without VAT), as follows:

1.Biryani Rice

2.Hamburger

3.Chicken Nuggets (6)

4.French Fries

5.Coke

40

30

15

7

15

The asks the user to enter a menu item number, from 1 ... 5. The user is then asked to enter the number of portions desired, from that item. The program outputs the name of the item selected, the number of portions for the item as well as the price with the VAT tax (assume VAT tax is 15%). The program also outputs the subtotal.

The user can keep selecting menu items with their portions until he/she asks to close the order (hint: ask the user would you like to order another item? ).

The program then prints the total number of menu items requested (not the portions) and the total price of the order with VAT included.

Give executions for the following:

Order1: item 2, 5 portions; item 3, 1 portion; item 5, 3 portions.

Order 2: item 1, 1 portion, item 4, 2 portions; item 5, 3 portions.

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!