Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 Tsukuba Japan April 2010 Proceedings Part 1 Lncs 5981

Authors: Hiroyuki Kitagawa ,Yoshiharu Ishikawa ,Wenjie Li ,Chiemi Watanabe

2010th Edition

3642120253, 978-3642120251

Students also viewed these Databases questions