Write a c++ program to help a local restaurant automate

Assignment Help C/C++ Programming
Reference no: EM13520239

Write a C++ program to help a local restaurant automate its breakfast billing system. The program should do the following:
a. Show the customer the different breakfast items offered by the restaurant.
b. Allow the customer to select more than one item from the menu and allow quantities greater than one for items selected.
c. Calculate and print the bill.
Assume that the restaurant offers the following breakfast items (the price of each item is shown to the right of the item):

Plain Egg $1.45
Bacon and Egg $2.45
Muffin $0.99
French Toast $1.99
Fruit Basket $2.49
Cereal $0.69
Coffee $0.50
Tea $0.75

Use an array, menuList, of the struct menuItemType. Struct menuItemType should have two components: menuItem of type string, and menuPrice of type double.

The program must contain at least the following functions:
-Function getData: This function loads the data into the arrany menuList.
-Function showMenu: This function shows the different items offered by the restaurant and tells the user how to select the items.
-Function printCheck: This function calculates and prints the check. (Note that the billing amount should include a 5% tax.)

Sample output:
Welcome to Johnny's Restaurant
1 Bacon and Egg $2.45
2 Muffin $1.98
1 Coffee $0.50
Tax $0.25
Amount Due $5.18

Reference no: EM13520239

Questions Cloud

Write a program to calculate the tax of an employee : Write a program to calculate the tax of an employee whose employee number is input from the keyboard. Display an appropriate error message if the data does not exist in the Emp table.
Evaluate the ratio of amine salt to dissolved amine : Buffer with pH of 5.5. Kb for aniline is 4.2 x 10-10, calculate the ratio of amine salt to dissolved amine for aniline
What is the rms current leaving the station : You're the operator of a 1.20×104 V rms, 60 Hz electrical substation. When you get to work one day, What is the rms current leaving the station
Prepare a cost of goods sold statement : Prepare a cost of goods manufactured statement and prepare a cost of goods sold statement.
Write a c++ program to help a local restaurant automate : Write a C++ program to help a local restaurant automate its breakfast billing system. The program should do the following:a. Show the customer the different breakfast items offered by the restaura
State the noble gas abbreviation ground state electronic : Write the noble gas abbreviation ground state electronic configurations for Ag and for Ag+. which is paramagnetic
How to estimate the constant-volume molar heat capacity : Use the equipartition theorem to estimate the constant-volume molar heat capacity of (a) I2, (b) CH4, (c) C6H6 in the gas phase at 25oC.
Roman numerals to a positive integer : Write a program that converts a number entered in Roman numerals to a positive integer
Determine the impedance at given frequency : A series RLC circuit consists of a 42.0 ? resistor, a 2.70 mH inductor, and a 460 nF capacitor. Determine the impedance at frequency 3000 Hz

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd