Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The language is c++ And thats how the output should look like . a Safari 9:49 AM Coffee Shop Project Part 2 For this part

image text in transcribed The language is c++
image text in transcribedAnd thats how the output should look like .
a Safari 9:49 AM Coffee Shop Project Part 2 For this part of the project you will do the following: (1) add input validation to the amount of coffee ordered, (2) modify the algorithm for determining types of cups needed to reduce the number of Shot cups used and (3) calculate the total price of the order based on the amount and type of coffee ordered. Use the table below to determine the price of the coffee. Product Cost per Ounce S0.2 acchiato . Modify your Part 1 code to display the numbers of each type of cup needed for the order only if the amount of coffee ordered is greater than 0. Otherwise, just display a descriptive error message. 2. Modify your Part I code that determines the number of each type of cup to reduce the number of Shot cups used. Add functionality to your program so that a Regular (8 oz) cup will be used instead of multiple Shot (1 oz) cups if the number of Shot cups needed exceeds 3. scription 3. Calculate the total cost of the order including tax and display a bill for the coffee. See the Sample Output. The current sales tax rate is 7%. Use named constants for the sales tax rate and the base cost of each type of coffee. 4. Add a menu to offer the user a choice between the different types of coffee. The menu should be the first thing displayed when your program begins executing. The menu format should match the one in the Sample Output on page 2. 5. Validate the user's menu choice. If the user enters any number other than 1, 2, 3 or 4 just display a descriptive error message. See Sample Output below for format

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

blah

Answered: 1 week ago

Question

=+management system of the MNE?

Answered: 1 week ago