# Restaurant Management System with Indian Menu and Billing
class Restaurant:
def __init__(self):
# Indian menu with items and their prices (in Indian Rupees)
[Link] = {
"Masala Dosa": 80.00,
"Paneer Tikka": 150.00,
"Butter Naan": 25.00,
"Dal Makhani": 120.00,
"Chole Bhature": 90.00,
"Lassi": 40.00,
"Biryani": 180.00,
"Samosa": 15.00,
"Gulab Jamun": 20.00,
"Veg Thali": 200.00
[Link] = {} # To store ordered items and their quantities
def show_menu(self):
# Display the menu items and prices
print("\n--- Menu ---")
for item, price in [Link]():
print(f"{item}: ₹{price:.2f}")
def take_order(self):
while True:
self.show_menu()
item = input("\nEnter the item you want to order (or type 'done' to finish): ").capitalize()
# Exit loop if done
if [Link]() == 'done':
break
# Check if item is on the menu
if item in [Link]:
try:
quantity = int(input(f"Enter the quantity for {item}: "))
# Add item to order, update quantity if item already exists
if item in [Link]:
[Link][item] += quantity
else:
[Link][item] = quantity
print(f"{quantity} {item}(s) added to your order.")
except ValueError:
print("Invalid quantity. Please enter a number.")
else:
print("Sorry, we don't have that item. Please choose from the menu.")
def calculate_bill(self):
# Calculate the total bill
total = 0
print("\n--- Order Summary ---")
for item, quantity in [Link]():
price = [Link][item]
cost = price * quantity
total += cost
print(f"{item} (x{quantity}): ₹{cost:.2f}")
print(f"\nTotal Bill: ₹{total:.2f}")
return total
def run(self):
# Run the restaurant management system
print("Welcome to our Restaurant!")
self.take_order()
self.calculate_bill()
print("\nThank you for dining with us!")
# Run the program
restaurant = Restaurant()
[Link]()