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

  Write c program to read one ip address

Write a C or C++ program which Read one IP address at a time from Dec_IPAddresses.txt and convert it into Hex. Store converted values stored in another file (e.g. HEX_IPAddresses.txt).

  In c++, write a program that calculates 10,000 tries.

In C++, write a program that calculates 10,000 tries. These tries are based upon a rat trying to escape from a maze. Keep adding minutes until the rat is free and when he is free that is 1 try so we need 10,000. We start by randomly generating a numb..

  Prints the row sums and the column sums

Write a program that reads a 5 x 5 array of integers and then prints the row sums and the column sums

  Approximately normally distributed

Write a program MakeFile.cpp that creates a file random.dat that contains 200 random numbers where each number is the sum of 12 random values rand( )%9. When we add a sufficient number of uniformly distributed numbers the result is approximately n..

  Create a program that prompts a user for her name

A. Given a = 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a b)(x y) using a single printf() function. B. Create a program that uses the same formula above to output the result; this time.

  A computational study of a spring-mass system in steady

a computational study of a spring-mass system in steady stateidealized spring-mass systems have numerous applications

  Writer a program that allows the user to enter an unknown

writer a program that allows the user to enter an unknown number of characters stores those characters in a data

  Program which calculates the average and sum of the numbers

write down a program which calculates the average and sum of the numbers enter by a user.Using a While Loop

  The "continue" and "break" statements

How are the "continue" and "break" statements different from the "exit" and "return" statements?

  C++ programs that compute the agreement for two vectors

In this assignment, you write C++ programs that compute the agreement for two given vectors (see Calculation 1 above). In these programs, in vectors A and B only nonzero elements (elements that are 1) are stored. We give you a function that gen..

  By a minimal interpretation that makes a formula

By a minimal interpretation that makes a formula true, we mean that if one atom is removed from the interpretation then the resulting interpretation does no longer make the formula true.

  Program that will calculate the heat transfer of a substance

write a program that will calculate the heat transfer of a substance (water) given three different shapes. The user has to be able to input the type of shape, so that the computer can calculate area, and plug it back in to the equation for heat trans..

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