Final answer:
The student needs to write a menu-driven program for operating a coffee shop that allows purchasing coffee in various sizes and keeping track of sales and revenue without using global variables, with constants for sizes and prices.
Step-by-step explanation:
The student is asked to create a menu-driven program for a coffee shop. This program should allow the user to purchase coffee in different sizes and track the sales and revenue. The task involves writing functions to handle various operations such as printing the menu, processing orders, and showing sales and money statistics.
Here are the key elements of the program:
- Menu Printing Function - Displays size options and pricing.
- Order Function - Takes user input for coffee size and quantity, calculates cost.
- Total Money Function - Computes and shows total revenue from sales.
- Total Coffee Sold Function - Displays total ounces of coffee sold.
- Cups Sold Function - Shows the number of cups sold by size.
- Data Printing Function - A summary of all the above data.
Constants should be used for the coffee sizes and prices. No global variables are to be used throughout the program.