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

CS PROJECT For Class 11 Restaurant Management. Devang

The document outlines a menu system for a cafe, detailing various food and drink items with their prices and quantities. It includes functionality for adding, editing, and removing items from the menu, as well as ordering items and managing table assignments. Additionally, it calculates the total bill and allows for splitting the amount among multiple people.

Uploaded by

devangsarpotdar1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

CS PROJECT For Class 11 Restaurant Management. Devang

The document outlines a menu system for a cafe, detailing various food and drink items with their prices and quantities. It includes functionality for adding, editing, and removing items from the menu, as well as ordering items and managing table assignments. Additionally, it calculates the total bill and allows for splitting the amount among multiple people.

Uploaded by

devangsarpotdar1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

menu = {

'1a': {'name': 'Dry Manchurian', 'price': 120, 'quantity': 7},


'1b': {'name': 'Manchurian with Gravy', 'price': 150, 'quantity': 5},
'2a': {'name': 'Veg Fry Rice', 'price': 90, 'quantity': 3},
'2b': {'name': 'Veg Schezwan Rice', 'price': 100, 'quantity': 3},
'2c': {'name': 'Fried Rice with Manchurian', 'price': 150, 'quantity': 5},
'3a': {'name': 'Garlic Noodles', 'price': 110, 'quantity': 10},
'3b': {'name': 'Schezwan Noodles', 'price': 120, 'quantity': 5},
'4a': {'name': 'Veggie Diet Steamed Momos', 'price': 80, 'quantity': 3},
'4b': {'name': 'Steamed Momos', 'price': 90, 'quantity': 10},
'4c': {'name': 'Kurkure Momos', 'price': 100, 'quantity': 10},
'4d': {'name': 'Paneer Steamed Momos', 'price': 110, 'quantity': 5},
'4e': {'name': 'Cheesy Momos', 'price': 120, 'quantity': 3},
'4f': {'name': 'Schezwan Momos', 'price': 130, 'quantity': 3},
'5a': {'name': 'Tea (normal)', 'price': 20, 'quantity': 25},
'5b': {'name': 'Masala Tea', 'price': 30, 'quantity': 20},
'5c': {'name': 'Coffee', 'price': 30, 'quantity': 20},
'5d': {'name': 'Chai Tea Latte', 'price': 40, 'quantity': 5},
'5e': {'name': 'Cappuccino', 'price': 40, 'quantity': 15},
'5f': {'name': 'Double Choco Boca', 'price': 40, 'quantity': 5},
'5h': {'name': 'Bubbletea', 'price': 50, 'quantity': 15},
'5i': {'name': 'Mixed Fruit Juice', 'price': 50, 'quantity': 10}
}

print("Welcome to Desi Chinese Cafe Portal")


print("Menu:")
for key in menu:
print(key, menu[key]['name'], "- ₹" + str(menu[key]['price']) + ", Qty: " +
str(menu[key]['quantity']))

while True:
r = input("Would you like to edit/add/remove new items with price or add
quantities to existing items (Type '-' /'_' to do nothing and continue with the
order)? : ")
if r in ('-', '_'):
break
if r.lower() == "add":
q = input("Item no and letter (e.g., 1a): ")
if q in menu:
print("Item no. and letter already exist. Do you want to edit quantity
of this item? (Yes/No)")
edit_qty = input()
if edit_qty.lower() == 'yes':
add_quantity = int(input("Enter the new quantity: "))
menu[q]['quantity'] = add_quantity
else:
print("Item already exists and not editing quantity.")
else:
name = input("Name: ")
price = int(input("Price: "))
quantity = int(input("Quantity: "))

# Check for existing name


name_exists = False
for item in menu.values():
if item['name'] == name:
name_exists = True
break
if name_exists:
print("Name already exists")
else:
menu[q] = {'name': name, 'price': price, 'quantity': quantity}

for v in menu:
print(v, menu[v]['name'], "- ₹" + str(menu[v]['price']) + ", Qty: " +
str(menu[v]['quantity']))

elif r.lower() == "remove":


q = input("Item no and letter (e.g., 1a): ")
if q not in menu:
print("Item no. and letter do not exist")
else:
menu.pop(q)
for v in menu:
print(v, menu[v]['name'], "- ₹" + str(menu[v]['price']) + ", Qty: " +
str(menu[v]['quantity']))

elif r.lower() == "edit":


q = input("Item no and letter (e.g., 1a): ")
if q not in menu:
print("Item no. and letter do not exist")
else:
w = input("Do you want to edit the name of the dish, price, or
quantity? ")
if w.lower() == "price":
new_price = int(input("Enter the new updated price: "))
menu[q]['price'] = new_price
elif w.lower() == "name":
new_name = input("Enter the new updated Name of the Dish: ")
name_exists = False
for item in menu.values():
if item['name'] == new_name:
name_exists = True
break
if name_exists:
print("Name exists")
else:
menu[q]['name'] = new_name
elif w.lower() == "quantity":
new_quantity = int(input("Enter the new updated quantity: "))
menu[q]['quantity'] = new_quantity

for v in menu:
print(v, menu[v]['name'], "- ₹" + str(menu[v]['price']) + ", Qty: " +
str(menu[v]['quantity']))

total_price = 0

while True:
choice = input("Enter the item number and letter to order (e.g., 1a) or 'exit'
to leave: ")
if choice.lower() == 'exit':
print("We would like to see you again")
break
elif choice in menu:
item = menu[choice]
while True:
quantity = int(input("How much serving size would you like to order?
(write in nos.) "))
if quantity > item['quantity']:
print("Insufficient quantity available. Only", item['quantity'],
"left. Would you like to order the available quantity? (Yes/No)")
order_less = input()
if order_less.lower() == 'yes':
quantity = item['quantity']
total_price += item['price'] * quantity
print(quantity, "x", item['name'], "- ₹", item['price'] *
quantity)
menu[choice]['quantity'] -= quantity
print("Current Total: ₹" + str(total_price))
break
else:
print("What else would you like to order?")
break
else:
total_price += item['price'] * quantity
print(quantity, "x", item['name'], "- ₹", item['price'] * quantity)
menu[choice]['quantity'] -= quantity
print("Current Total: ₹" + str(total_price))
break

else:
print("Invalid choice. Please try again.")

x = input("Would you like to proceed to payment: ")


if x.lower() == "yes":
tables = {1: 'available', 2: 'available', 3: 'available', 4: 'available',
5: 'available',
6: 'available', 7: 'available', 8: 'available', 9: 'available', 10:
'available',
11: 'available', 12: 'available', 13: 'available', 14: 'available',
15: 'available',
16: 'available', 17: 'available', 18: 'available', 19: 'available',
20: 'available'}

# Display table status


print("Table Status:")
for table in tables:
print("Table", table, ":", tables[table])

# Assign a table
while True:
table_no = int(input("Enter table number to assign (1-20) or 0 to exit:
"))
if table_no == 0:
break
if table_no in tables:
if tables[table_no] == 'available':
tables[table_no] = 'occupied'
print("Table", table_no, "has been assigned.")
else:
print("Table already occupied. Please try again.")
else:
print("Invalid table number. Please try again.")
print("Updated Table Status:")
for table in tables:
print("Table", table, ":", tables[table])

total_amount = total_price

num_people = int(input("Enter number of people to split the bill: "))

if num_people > 0:
amount_per_person = total_amount / num_people
print("Total bill amount: ₹" + str(total_amount))
print("Amount per person: ₹" + str(amount_per_person))
else:
print("Number of people must be greater than 0.")

You might also like