1) Write a C++ program using the Class keyword to help a local restaurant automate its...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1) Write a C++ program using the Class keyword to help a local restaurant automate its breakfast billing system. (60 points) 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. 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): ● Menu Plain Egg.... Bacon and Egg.... Muffin......... French Toast...... Fruit Basket....... Cereal........ Coffee..... .......$1.45 $2.45 ........$0.99 .....$1.99 .......$2.49 ....$0.69 ..$0.50 Use an array, menuList, of the Class menuItemType, your program must contain at least the following functions: Function getData: This function loads the data into the array 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.) Format your output with two decimal places. 1) Write a C++ program using the Class keyword to help a local restaurant automate its breakfast billing system. (60 points) 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. 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): ● Menu Plain Egg.... Bacon and Egg.... Muffin......... French Toast...... Fruit Basket....... Cereal........ Coffee..... .......$1.45 $2.45 ........$0.99 .....$1.99 .......$2.49 ....$0.69 ..$0.50 Use an array, menuList, of the Class menuItemType, your program must contain at least the following functions: Function getData: This function loads the data into the array 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.) Format your output with two decimal places.
Expert Answer:
Answer rating: 100% (QA)
Below is a simple C program using the class keyword to help a local restaurant automate its breakfas... View the full answer
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Ruby works in the treasury department of a large airline company. Over the coming months the airline company expects to increase flights as countries continue to ease travel restrictions. Ruby and...
-
Write the height h of the rectangle as a function of x. 1. 2. (1, 3) 2- - 4 - 2) 1 - + 1 2. 4 3. 4) y = 4x x2 (2, 4) 3 2. y = 2r 2 3 4 4)
-
Go to the ASX website, www.asx.com.au. In the search window, type listing on the ASX. How does the ASX define Listing? What are the key benefits of Listing according to the ASX?
-
In Figure P8.35, a \(55-\mathrm{kg}\) skier heads down a slope, reaching a speed of \(27 \mathrm{~km} / \mathrm{h}\). They then slide across a horizontal snow field but hit a rough area. Assume the...
-
Nancy Tercek started a delivery service, Tercek Deliveries, on June 1, 2015. The following transactions occurred during the month of June. June 1 Stockholders invested $10,000 cash in the business in...
-
1. In the given reaction, XYZ3 2. 3. 4. 5. X+Y+3Z If one mole of each of X and Y with 0.05 mol of Z gives compound XYZ3. (Given: Atomic masses of X, Y and Z are 10, 20 and 30 amu, respectively.) The...
-
You receive an email from your mentor: Hey, Tough assignment! Welcome to the messy job of...well...cleaning up messes. I've been following our mentions on social media since last night, too, so here...
-
Two movers apply forces to a 487 kg piano. If one mover pushes the piano with a force of 250 N, and the other pulls with a force of 160 N, what is the acceleration of the piano?
-
When is a determination of the patient's annual deductible, copay, and coinsurance made?
-
What is the role of health care clearinghouses in the revenue cycle?
-
What costing method calculates overhead as an overall overhead rate multiplied by the number of labor hours needed for the project?
-
What does the Medical Savings Account pay for under the Medicare Advantage plan?
-
1. Advantages and Disadvantages of Banking Regulations: Thoroughly investigate the advantages, such as financial stability and consumer protection, as well as the disadvantages, such as potential...
-
A lessee company signed a lease for equipment from a lessor on January 1, Year 1. The lease requires equal rental payments of $40,870 at the beginning of each year of the term. The PV of the lease...
-
San Carlos Bank and Trust Company uses a credit-scoring system to evaluate most consumer loans that amount to more than $2,500. The key factors used in its scoring system are found at the conclusion...
-
Classification of variable and fixed costs Classify each of the following as a variable or fixed cost with respect to a unit of product that is sold: a. Commissions paid to sales personnel. b....
-
What is profit sharing?
-
Based on your understanding of how chains are managed, would you agree or disagree that an outlet of a large department store chain should be treated as an investment center? What about the...
-
Indonesia produces about 60 percent of the worlds palm oil. Palm oil is used in the production of shampoo, ice cream, and chocolate. Assume that Switzerland does not produce palm oil but companies in...
-
An article in the Wall Street Journal stated that Chinas treatment of American know-how has been a central issue to U.S.-China trade tensions over the past five years. a. What does the article mean...
-
An article in the Wall Street Journal explained that despite rising national security tensions between the United States and China in 2023, trade between the two nations was rising. China is a...
Study smarter with the SolutionInn App