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
-
The shareholders' equity accounts of Sandhill Inc. at December 31, 2023, are as follows: Preferred shares, $3 noncumulative, unlimited number authorized, 5,000 issued $500,000 Common shares,...
-
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...
-
Critically evaluate Trentmann's (2022) article by discussing if the Zero-Based-Budgeting approach is the best way for companies to increase profits and then demonstrate with support from current...
-
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...
-
Loco Camping Supplies offers a 60-day exchange policy on all of the products it sells. Loco estimates that 2.5% of its total sales will be returned for exchange each month. During May, Loco sold...
-
Ethics Shrinkage is a huge problem for retailersthey face challenges on the consumer side with shoplifting and retail borrowing, as well as on the employee side with theft. Assume you are the owner...
-
Discuss how specific environmental issues examined in this chapter impact the development and sale of electric cars. THE RISE OF THE ELECTRIC CAR One of the most notable social trends affecting...
-
Suppose that Executive Aviation discovers that Air Ruidoso has sufficient assets in one of its bank accounts to pay the past-due amount. How might Executive Aviation attempt to obtain access to these...
-
Consider the following information: State of Economy Probability of State of Economy Rate of Return if State Occurs Stock A Stock B Stock C Boom .72 .10 .04 .40 Bust .28 .29 .35 .20 1- What is the...
-
(a) Sketch the trapezoidal spectrum (b) By appropriate sketches, show that it satisfies Nyquists pulse-shaping criterion. P(f) =A(f /b) A(F/a), b > a > 0, for a =1 and b = 2. %| b-a b-a
-
What are the three dimensions of an organizational environment according to Larson and LaFasto? Which do you feel is most important for effective teams and why? Please provide an example to...
-
A farmer has an acre of specialty vegetables and is preparing for the summer harvest. Historically, this acre has yielded an average of 2,100 lbs of product with a standard deviation of 950 lbs. A...
-
Solve 3x 82+22 = (4).
-
(c) Compute EVPI and EVSI (in thousands of dollars). (Round your answers to one decimal place.) EVPI $ 3.6 EVSI $ 3.6 Xthousand x thousand Discuss whether the firm should consider a consulting expert...
-
Question 9 (1 point) If the common law requires employees of a bar establishment to monitor a potentially intoxicated patron and to possibly make an effort to intervene if there is an indication the...
-
B. A velocity potential is given by the equation: Q = x-y 3. (10 pts) Short answer, What special characteristics of the velocity potential make it very useful in identifying a type of flow and...
-
Working Capital and Current Ratio The following data (in thousands) were taken from recent financial statements of Under Armour, Inc.: December 31 Year 2 Year 1 $ Current assets $ 76,779 106,279...
-
With your classmates, form small teams of skunkworks. Your task is to identify an innovation that you think would benefit your school, college, or university, and to outline an action plan for...
-
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...
-
22. How are internal service funds reported on government-wide financial statements?
-
21. Why does a government determine the net expenses or revenues for each of the functions within its statement of activities?
-
20. What is the difference in program revenues and general revenues? Why is that distinction important?
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App