Question: Extra Credit - Coffee Shop ( 2 5 points ) Points earned in this part can be added to exams or assignments. Jason opened a
Extra Credit Coffee Shop points
Points earned in this part can be added to exams or assignments.
Jason opened a coffee shop at the beach and sells coffee in three sizes: small oz medium z and large oz The cost of one small cup is $ one medium cup is $ and one large cup is $
Write a menudriven program that will make the coffee shop operational. Your program should allow the user to do the following:
Buy coffee in any size and in any number of cups.
At any time show the total number of cups of each size sold.
At any time show the total amount of coffee sold.
At any time show the total money made.
Your program should consist of at least the following functions:
a a function to print the menu
b a function to order the coffee option
c a function to check the total money made up option
d a function to check the total amount of coffee sold up option
e a function to check the number of cups of coffee of each size sold option
f a function that print the data option
Your program should not use global variables. Special values such as coffee cup sizes and cost of a coffee cup must be declared as named constants.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
