0% found this document useful (0 votes)
33 views4 pages

Cafe Management System

The Cafe Management System is a Python application that allows users to order food from a menu, calculates the total bill based on selections, and ensures only available items can be ordered. It features a menu display, user input validation, and total cost computation. The system can be enhanced with additional features like order quantity and payment processing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views4 pages

Cafe Management System

The Cafe Management System is a Python application that allows users to order food from a menu, calculates the total bill based on selections, and ensures only available items can be ordered. It features a menu display, user input validation, and total cost computation. The system can be enhanced with additional features like order quantity and payment processing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

cafE MANAGEMENT SYSTEM

 Introduction: The Cafe Management System is a simple Python-based


application that allows users to order food items from a predefined
menu. It calculates the total bill based on user selections and ensures
that only available menu items can be ordered.
 Features:
o Displays a menu with item names and their respective prices.
o Allows users to input their desired food items.
o Validates user input to ensure the selected items are available.
o Computes and displays the total cost of the order.

 Implementation: The system is implemented using Python with basic


input and output operations. The menu is stored in a dictionary, where
keys represent item names and values store their respective prices.
 Code Structure:
1. Define Menu: The available food items and their prices are stored in a
dictionary.
2. Display Menu: The system prints the menu for the user to view.
3. Take User Order: The user is prompted to enter their desired food item.
4. Validate Order: The system checks if the entered item exists in the
menu.
5. Calculate Total: If the item is available, its price is added to the total.
6. Additional Order: The user is asked whether they want to order another
item.
7. Final Bill Display: The total bill is printed at the end.

 Code Implementation:
menu = {
'pizza': 40,
'pasta': 50,
'burger': 60,
'salad': 70,

MANDA RAMASATYAPRIYA
322103312117
cafE MANAGEMENT SYSTEM

'coffee': 80,
}

print("Welcome to MRSP Restaurant")


print("Menu:")
for item, price in menu.items():
print(f"{item}: Rs {price}")

order_total = 0

item_1 = input("Enter the name of the item you want to order: ").lower()
if item_1 in menu:
order_total += menu[item_1]
print(f"Ordered item '{item_1}' has been added to your order.")
else:
print(f"Ordered item '{item_1}' is not available.")

another_order = input("Do you want to add another item? (yes/no): ").lower()


if another_order == "yes":
item_2 = input("Enter the name of the next item you want to order:
").lower()
if item_2 in menu:
order_total += menu[item_2]
print(f"Ordered item '{item_2}' has been added to your order.")
else:
print(f"Ordered item '{item_2}' is not available!")

MANDA RAMASATYAPRIYA
322103312117
cafE MANAGEMENT SYSTEM

print(f"Total amount to pay: Rs {order_total}")

# print(f”…………………………………”) is used for clear output

 OUTPUT:
Menu:

pizza: Rs 40

pasta: Rs 50

burger: Rs 60

salad: Rs 70

coffee: Rs 80

Enter the name of the item you want to order: pizza

Ordered item 'pizza' has been added to your order.

Do you want to add another item? (yes/no): yes

Enter the name of the next item you want to order: burger

Ordered item 'burger' has been added to your order.

Total amount to pay: Rs 100


AND ANOTHER OUTPUT IS

Menu:
pizza: Rs 40
pasta: Rs 50
burger: Rs 60
salad: Rs 70
coffee: Rs 80
Enter the name of the item you want to order: pizza
Ordered item 'pizza' has been added to your order.
Do you want to add another item? (yes/no): no
Total amount to pay: Rs 40

 Conclusion: The Cafe Management System is a basic project that


demonstrates Python's capabilities in handling user input, validating
entries, and computing totals. It can be further enhanced with additional

MANDA RAMASATYAPRIYA
322103312117
cafE MANAGEMENT SYSTEM

features such as order quantity, payment processing, and database


integration.

MANDA RAMASATYAPRIYA
322103312117

You might also like