Question
C++ Coffee shop project part 4... Please see attached screenshots of the assignment... Thanks for your help in advance. Add functionality to calculate the total
C++ Coffee shop project part 4...
Please see attached screenshots of the assignment... Thanks for your help in advance.
Add functionality to calculate the total cost of all the coffee bills in the text file. Display the total cost after displaying the individual coffee bills. Make sure your program will correctly calculate the total cost no matter how many records are in the text file. The format should match the one in the Sample Output on page 3.
Use the Divide and Conquer approach described in Section 6.1 of your textbook to modularize your program.
Write a function that displays the menu, prompts user for a choice, validates the choice and returns a valid option.
Write a function that accepts a number of ounces and displays the number of Venti, Grande, Regular and Shot cups needed formatted as shown in the Sample Output.
Write a function that accepts a type of coffee and a number of ounces and returns the base cost (sales tax not added) of the coffee.
Write a function that only accepts a name, a type of coffee and a number of ounces and displays the coffee bill. Content and format of the bill must match the Sample Output. This function should not duplicate code found elsewhere in the program.
Make the local named constants you used in Part 1 global constants.
|
Step 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