Final answer:
To make the coffee shop operational, you can create a menu-driven program in a programming language such as Python. The program should include functions for printing the menu, ordering coffee, checking the total money made, checking the total amount of coffee sold, checking the number of cups of each size sold, and printing the data. You can use named constants for the sizes and prices of the cups of coffee.
Step-by-step explanation:
To make the coffee shop operational, I would recommend creating a menu-driven program in a programming language such as Python. Here is an example of how you can structure your program:
- Define named constants for the sizes and prices of the cups of coffee.
- Create a function to print the menu, which displays the available sizes and prices.
- Create a function to order the coffee, which prompts the user for the size and quantity of cups they want to buy. Calculate the total cost of the order and update the total number of cups sold for each size.
- Create a function to check the total money made, which calculates the sum of the costs of all orders.
- Create a function to check the total amount of coffee sold, which calculates the sum of the sizes of all cups sold.
- Create a function to check the number of cups of coffee of each size sold, which displays the current count of cups sold for each size.
- Create a function to print the data, which calls the other functions as needed to display the relevant information.
You can then use a loop to repeatedly display the menu and handle user inputs until they choose to exit the program. In the loop, you can call the appropriate function based on the user's choice.