top of page
< Back

Coffee Shop Revenue Calculator

A coffee shop needs a program to calculate the total revenue for a day.

- The shop sells Espresso (£2.50), Latte (£3.00), and Cappuccino (£3.50).
- The program should ask the user how many of each type were sold.
- It should then calculate and display the total revenue.

# Prices of coffee ESPRESSO_PRICE = 2.50 LATTE_PRICE = 3.00 CAPPUCCINO_PRICE = 3.50 # =====> Prompt for number of each coffee type sold # =====> Calculate total revenue # =====> Display the final total

Example Outputs:
Enter number of espressos sold: 5
Enter number of lattes sold: 3
Enter number of cappuccinos sold: 4
Total revenue: £31.50

bottom of page