Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++... Program 1 (16 points) Write a modular program for a restaurant to handle their orders as the wait staff enters them into a

In C++...

image text in transcribed

Program 1 (16 points) Write a modular program for a restaurant to handle their orders as the wait staff enters them into a cash register. There should be four functions to the program. Main is one and should call the Welcome Function, ask the user (the waiter/Waitress entering the order) for the number of people in the party, and call the EnterBill Function and pass it the number of people in the party as a parameter. The Welcome Function should print a welcome message to the user with the name (your choice) of a restaurant The EnterBill Function should have a For Loop that goes to the number of meals that are going to be entered. For each meal it should ask for the price of the meal and add the price to a subtotal, and it should also ask if there is a drink. If there is one it should add 1.50 to the subtotal as well. Once the loop entering the meals is done it should then call the TotalBill function and pass the subtotal as a parameter to it. The TotalBill function should ask the user for a tip percentage, and print the subtotal, the tip, and the total with tip for the user. (Make sure to have these functions and the passed parameters. They are the parts of the grade for this part of the test.)

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago