Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a pragram in c++? For this part of the project you will do the following: (1) add input validation to the amount of coffee
write a pragram in c++?
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.13 $0.23 S0.25 Frappuccino S0.28 Plain Coffee Latte Macchiato on Instructions: 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 o. Otherwise, just display a descriptive error message. 1. Modify your Part 1 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 exceeds3. 2. Calculate the total cost of the order including tax and display a bill for the coffee. See the Sample Output. The currentsales tax rate is 7%. Use named constants for the sales tax rate and the base cost of each type of coffee 3Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started