0% found this document useful (0 votes)
15 views13 pages

Computer SC Project

The document presents a project titled 'Menu Driven Python Program' for a restaurant management system, submitted by students Anurag Das and Punyabrata Upadhyay under the guidance of Mrs. Geetanjali Hota. It includes source code for managing restaurant operations such as adding dishes, updating stock and prices, searching for dishes, and displaying the menu. The project aims to simplify restaurant operations and is part of the requirements for the Annual Computer Science Practical Examination for the session 2024-25.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views13 pages

Computer SC Project

The document presents a project titled 'Menu Driven Python Program' for a restaurant management system, submitted by students Anurag Das and Punyabrata Upadhyay under the guidance of Mrs. Geetanjali Hota. It includes source code for managing restaurant operations such as adding dishes, updating stock and prices, searching for dishes, and displaying the menu. The project aims to simplify restaurant operations and is part of the requirements for the Annual Computer Science Practical Examination for the session 2024-25.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

A COMPUTER SCIENCE PROJECT ON

“MENU DRIVEN PYTHON PROGRAM”


(Let’s Enjoy the Programming World With Python)

For the partial fulfilment of the conditions laid down for Annual
Computer Science Practical Examination of Std-XI for the session
2024-25.

Under the guidance of Mrs. Geetanjali Hota


(HOD, Computer Science)
Submitted By:
ANURAG DAS
PUNYABRATA UPADHYAY
CLASS—XI-B
ROLL NO. – 06,33

DAV PUBLIC SCHOOL, POKHARIPUT


DECLARATION

We Anurag Das and Punyabrata Upadhyay,


Students of Class-XII ‘B’ of DAV Public School,
Pokhariput, hereby submit the project entitled
‘Exam Management System’ for the Half Yearly
Computer Science Practical for the Session 2024-
25.

This project consists of original work done by us


under the able guidance and supervision of my
Computer Science Teacher.

Signature of the Students


CERTIFICATE
This is to certify that the project entitled
‘Python Program for Menu-Driven Restaurant
Management System’ is an original piece of work
done by Anurag Das and Punyabrata Upadhyay
of Class XI-B is in accordance with topic allotted
to us.

This project is submitted towards the partial


fulfillment of the conditions laid down for
Annual Computer Sc. Practical Examination for
the Session 2024-25 and embodies the work done
by them under my guidance and supervision.

Signature of the Internal Signature of the External

Signature of the Supervisor


ACKNOWLEDGEMENT

I would like to express profound sense of gratitude to


my guide Mrs. Geetanjali Hota, our Computer Science
Teacher for her valuable guidance and suggestions
during preparation of our project work.

I am also grateful to our Principal Mr. Bipin Kumar


Sahoo, for his encouragement and constant inspiration.

With great pleasure I also extend my gratitude to my


friends for their support and help which enabled me to
finish this piece of work successfully.

Signature of the Students


TABLE OF CONTENTS
1. Source Code
2. Output
3. Bibliography
SOURCE CODE
print("WELCOME TO OUR RESTAURANT")

restaurant = {}

while True:

print("\n--- Restaurant Management System ---")

print("1. Add a new dish")

print("2. Update dish stock")

print("3. Update dish price")

print("4. Search for a dish")

print("5. Display all dishes")

print("6. Exit")

choice = input("Enter your choice: ")

if choice == "1":

dish_id = input("Enter dish ID: ")

if dish_id in restaurant:

print("Dish ID already exists!")

else:

name = input("Enter dish name: ")

price = float(input("Enter dish price: "))

stock = int(input("Enter stock quantity: "))

restaurant[dish_id] = {"name": name, "price": price, "stock": stock}

print(f"Dish '{name}' added successfully!")

elif choice == "2":

dish_id = input("Enter dish ID to update: ")

if dish_id in restaurant:

new_stock = int(input("Enter the new stock value: "))

restaurant[dish_id]["stock"] = new_stock

print(f"Stock updated for dish '{restaurant[dish_id]['name']}'.")

else:

print("Dish ID not found!")

elif choice == "3":

dish_id = input("Enter dish ID to update the price: ")

if dish_id in restaurant:

new_price = float(input("Enter the new price: "))

restaurant[dish_id]["price"] = new_price

print(f"Price updated for dish '{restaurant[dish_id]['name']}'.")

else:

print("Dish ID not found!")


elif choice == "4":

dish_id = input("Enter dish ID to search: ")

if dish_id in restaurant:

dish = restaurant[dish_id]

print("\n--- Dish Details ---")

print(f"Name: {dish['name']}")

print(f"Price: ₹{dish['price']:.2f}")

print(f"Stock: {dish['stock']} servings")

else:

print("Dish ID not found!")

elif choice == "5":

if not restaurant:

print("No dishes available in the menu!")

else:

print("\n--- Restaurant Menu ---")

for dish_id, dish in restaurant.items():

print(f"ID: {dish_id}, Name: {dish['name']}, Price: ₹{dish['price']:.2f}, "

f"Stock: {dish['stock']} servings")

elif choice == "6":

print("Exiting the Restaurant Management System. Have a nice day!")

break

else:

print("Invalid choice! Please try again.")


OUTPUT
WELCOME TO OUR RESTAURANT

--- Restaurant Management System ---

1. Add a new dish

2. Update dish stock

3. Update dish price

4. Search for a dish

5. Display all dishes

6. Exit

Enter your choice: 1

Enter dish ID: 1

Enter dish name: Veg Crispy Burger

Enter dish price: 59

Enter stock quantity: 12

Dish 'Veg Crispy Burger' added successfully!

--- Restaurant Management System ---

1. Add a new dish

2. Update dish stock

3. Update dish price

4. Search for a dish

5. Display all dishes

6. Exit

Enter your choice: 1

Enter dish ID: 2

Enter dish name: Veggie Strips

Enter dish price: 40

Enter stock quantity: 20

Dish 'Veggie Strips' added successfully!

--- Restaurant Management System ---

1. Add a new dish

2. Update dish stock

3. Update dish price

4. Search for a dish

5. Display all dishes


6. Exit

Enter your choice: 1

Enter dish ID: 3

Enter dish name: Regular fries

Enter dish price: 50

Enter stock quantity: 15

Dish 'Regular fries' added successfully!

--- Restaurant Management System ---

1. Add a new dish

2. Update dish stock

3. Update dish price

4. Search for a dish

5. Display all dishes

6. Exit

Enter your choice: 2

Enter dish ID to update: 2

Enter the new stock value: 10

Stock updated for dish 'Veggie Strips'.

--- Restaurant Management System ---

1. Add a new dish

2. Update dish stock

3. Update dish price

4. Search for a dish

5. Display all dishes

6. Exit

Enter your choice: 3

Enter dish ID to update the price: 1

Enter the new price: 120

Price updated for dish 'Veg Crispy Burger'.

--- Restaurant Management System ---

1. Add a new dish

2. Update dish stock

3. Update dish price

4. Search for a dish

5. Display all dishes


6. Exit

Enter your choice: 5

--- Restaurant Menu ---

ID: 1, Name: Veg Crispy Burger, Price: ₹120.00, Stock: 12 servings

ID: 2, Name: Veggie Strips, Price: ₹40.00, Stock: 10 servings

ID: 3, Name: Regular fries, Price: ₹50.00, Stock: 15 servings

--- Restaurant Management System ---

1. Add a new dish

2. Update dish stock

3. Update dish price

4. Search for a dish

5. Display all dishes

6. Exit

Enter your choice: 6

Exiting the Restaurant Management System. Have a nice day!


CONCLUSION
In conclusion, the Python-based menu-driven restaurant
management system simplifies operations such as order
taking and billing. Its modular design allows for easy
updates and enhancements to suit the evolving needs of
the restaurant business.
BIBLIOGRAPHY
• Computer Science with Python
-Sumita Arora
THANK YOU

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy