Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to help a local hotel automate its breakfast billing in C++ Key Idea: To learn the usage of Classes and public and

Write a program to help a local hotel automate its breakfast billing in C++

Key Idea: To learn the usage of Classes and public and private functions.

Instructions:

1. Use a class called .Hotel

2. The program should contain the following under public functions:

Menu, Order Requested, Order Processor and Price Computed

3. The Menu should have only 4 items with their prices

1.Tea = $30

2.Bread = $50

3.Rice = $200

4.Meat = $150

4. Let those four food items under menu be defined as Private functions.

5. Under Order Requested, the program should allow for the selection of multiple food items and their quantities separated by a semi colon.

Example: 1,2 ; 3,5;

Where 1 stands for tea and 2 stands for the number of cups . And 3 stands for Rice and 5 stands for the number of plates.

6. Order Processor should calculate the total bill based on the items order in Order Requested and return a list with the total of what the customer ordered.

Example: 2 cups of tea, 5 plates of rice = $1,260

7. Request to End the program or alternatively run a new order.

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 Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago