Share your repls and programming experiences

← Back to all posts
Coffee Shop Application
tr29038 (1)

/Algorithm
WHILE NOT quit sentinel:
Prompt user with main menu and options
IF buyCoffee is selected:
WHILE NOT quit sentinel:
Prompt user size of coffee
Prompt user number of cups of specified size of coffee
Output receipt
IF cupsSold is selected:
Output number of cups of coffee sold per cup size and general total
IF ouncesSold is selected:
Output number of ounces of coffee sold
IF totalRevenue is selected:
Output total revenue
/