Cs Project- Aryankumarsingh
Cs Project- Aryankumarsingh
TEACHER
Sr.No INDEX PAGE.NO
SIGN
1.
INTRODUCTION TO PYTHON 1-3
2. FEATURES OF PYTHON 4
3. HARDWARE REQUIREMENTS 5
4. SOFTWARE REQUIREMENTS 6
9. CONLUSION 18
1. Introduction to
Python
Python was created by Guido van Rossum in the late 1980s and released
its first version in 1991. Python 2.0, released in 2000, introduced new
features such as list comprehensions and a garbage collection system.
Python 3.0, released in 2008, was designed to rectify the design flaws of
Python 2.x but was not completely backward- compatible with it
1.2 Why Python?
Early Development
Python 0.9.0 (1991): Core features like exception handling, functions, and
modules.
Python 1.x Series
Python 1.0 (1994): Introduced lambda, map, filter, reduce.
Python 1.2 (1995): Improved modules and compatibility.
Python 2.x Series
Python 2.0 (2000): List comprehensions, garbage collection, Unicode.
Python 2.2 (2001): New-style classes.
Python 2.3 (2003): Performance enhancements.
Python 2.7 (2010): Final 2.x release, transitioning to 3.x.
Python 3.x Series
Python 3.0 (2008): Major overhaul, fixing design flaws.
Python 3.3 (2012): venv module.
Python 3.4 (2014): asyncio library.
Python 3.6 (2016): f-strings.
Python 3.8 (2019): Walrus operator :=.
Python 3.10 (2021): Structural pattern matching.
Python 3.11 (2022): Enhanced error messages, async comprehensions.
Python 3.12 (2023): Improved type hinting, new singleton types.
Python 3.13 (2024): Enhanced AI/ML libraries, quantum computing features.
Future Prospects
Continuous community contributions.
Focus on concurrency, parallelism, and modern computing trends.
2. Features
of Python
Bash
# Creating a virtual environment
python -m venv myenv
5.1 Objective
The goal of this project is to create a text-based restaurant menu
application that allows users to view, add, and remove menu items.
5.2 Description
The application will have a Command-Line Interface (CLI) with the
following functionalities:
View Menu Items: Display all items currently on the menu.
Add Menu Item: Add new items to the menu.
Remove Menu Item: Remove existing items from the menu.
5.3 User Interface Design The CLI will present a simple menu-driven
interface with options for viewing, adding, and removing items.
Flowcharts or pseudocode can illustrate the user's journey within the
application.
6. FUTURE
SCOPE OF THE
PROJECT
print("_____________________________________")
print(" RESTAURANT MENU ")
print("_____________________________________")
while True :
print("\nSelect a category:")
print("1. Punjabi Delights")
print("2. South Indian Specialties")
print("3. Chinese Cuisine")
print("4. Seafood Extravaganza")
print("5. Beverages")
print("6. Exit")
if choice == '1':
print("\nPunjabi Delights:")
print("1. Vegetarian")
print("2. Non-Vegetarian")
sub_choice = input("Enter choice (1/2): ")
if sub_choice == '1':
print("\nVegetarian Punjabi Delights:")
print("1. Paneer Tikka - ₹750")
print("2. Chole Bhature - ₹600")
print("3. Sarson Ka Saag - ₹675")
print("4. Makki Ki Roti - ₹225")
print("5. Dal Makhani - ₹525")
print("6. Aloo Paratha - ₹450")
elif sub_choice == '2':
print("\nNon-Vegetarian Punjabi Delights:")
print("1. Butter Chicken - ₹900")
print("2. Amritsari Fish - ₹1050")
print("3. Tandoori Chicken - ₹825")
print("4. Chicken Curry - ₹750")
print("5. Mutton Rogan Josh - ₹950")
print("6. Keema Naan - ₹700")
else:
print("Invalid input. Please enter 1 or 2.")
print("\nEnjoy our delicious Punjabi Delights!")
elif choice == '2':
print("\nSouth Indian Specialties:")
print("1. Vegetarian")
print("2. Non-Vegetarian")
sub_choice = input("Enter choice (1/2): ")
if sub_choice == '1':
print("\nVegetarian South Indian Specialties:")
print("1. Dosa - ₹450")
print("2. Idli - ₹375")
print("3. Vada - ₹300")
print("4. Uttapam - ₹525")
print("5. Pongal - ₹600")
print("6. Sambar - ₹300")
elif sub_choice == '2':
print("\nNon-Vegetarian South Indian Specialties:")
print("1. Chicken Chettinad - ₹750")
print("2. Fish Curry - ₹825")
print("3. Mutton Curry - ₹900")
print("4. Prawn Masala - ₹950")
print("5. Egg Curry - ₹600")
print("6. Chicken 65 - ₹700")
else:
print("Invalid input. Please enter 1 or 2.")
print("\nSavor the flavors of South India!")
again = input("\nWould you like to order something else? (1 for Yes/2 for NO): ")
if again.lower() != '1':
print("Exiting the menu. Enjoy your meal!")
break
8. OUTPUT OF
THE CODE
_____________________________________
RESTAURANT MENU
_____________________________________
Select a category:
1. Punjabi Delights
2. South Indian Specialties
3. Chinese Cuisine
4. Seafood Extravaganza
5. Beverages
6. Exit
Enter choice (1/2/3/4/5/6): 1
Punjabi Delights:
1. Vegetarian
2. Non-Vegetarian
Enter choice (1/2): 1 Would you like to order something else? (1 for Yes/2 for NO): 1
Select a category:
1. Punjabi Delights
2. South Indian Specialties
3. Chinese Cuisine
4. Seafood Extravaganza
5. Beverages
6. Exit
Enter choice (1/2/3/4/5/6): 2
Would you like to order something else? (1 for Yes/2 for NO): 1
Select a category:
1. Punjabi Delights
2. South Indian Specialties
3. Chinese Cuisine
4. Seafood Extravaganza
5. Beverages
6. Exit
Enter choice (1/2/3/4/5/6): 3
Chinese Cuisine:
1. Vegetarian
2. Non-Vegetarian
Enter choice (1/2): 1
Would you like to order something else? (1 for Yes/2 for NO): 1
Select a category:
1. Punjabi Delights
2. South Indian Specialties
3. Chinese Cuisine
4. Seafood Extravaganza
5. Beverages
6. Exit
Enter choice (1/2/3/4/5/6): 3
Chinese Cuisine:
1. Vegetarian
2. Non-Vegetarian
Enter choice (1/2): 2
Select a category:
1. Punjabi Delights
2. South Indian Specialties
3. Chinese Cuisine
4. Seafood Extravaganza
5. Beverages
6. Exit
Enter choice (1/2/3/4/5/6): 4
Seafood Extravaganza:
1. Grilled Fish - ₹1125
2. Prawn Curry - ₹1050
3. Crab Soup - ₹750
4. Lobster Thermidor - ₹1500
5. Fish Tacos - ₹900
6. Shrimp Scampi - ₹1200
Would you like to order something else? (1 for Yes/2 for NO): 1
Select a category:
1. Punjabi Delights
2. South Indian Specialties
3. Chinese Cuisine
4. Seafood Extravaganza
5. Beverages
6. Exit
Enter choice (1/2/3/4/5/6): 5
Beverages:
1. Hot Beverages
2. Cold Beverages
Enter choice (1/2): 1
Hot Beverages:
1. Coffee - ₹150
2. Tea - ₹112
3. Hot Chocolate - ₹187
4. Espresso 5. - ₹200
Cappuccino 6. - ₹225
Masala Chai - ₹150
Select a category:
1. Punjabi Delights
2. South Indian Specialties
3. Chinese Cuisine
4. Seafood Extravaganza
5. Beverages
6. Exit
Enter choice (1/2/3/4/5/6): 5
Beverages:
1. Hot Beverages
2. Cold Beverages
Enter choice (1/2): 2
Cold Beverages:
1. Lemonade - ₹187
2. Mango Lassi - ₹225
3. Iced Tea - ₹150
4. Smoothie - ₹300
5. Soda - ₹112
6. Milkshake - ₹262
Would you like to order something else? (1 for Yes/2 for NO): 1
Select a category:
1. Punjabi Delights
2. South Indian Specialties
3. Chinese Cuisine
4. Seafood Extravaganza
5. Beverages
6. Exit
Enter choice (1/2/3/4/5/6): 6
Exiting the menu. Enjoy your meal!
_____________________________________
RESTAURANT MENU
_____________________________________
Select a category:
1. Punjabi Delights
2. South Indian Specialties
3. Chinese Cuisine
4. Seafood Extravaganza
5. Beverages
6. Exit
Enter choice (1/2/3/4/5/6): 5
Beverages:
1. Hot Beverages
2. Cold Beverages
Enter choice (1/2): 2
Cold Beverages:
1. Lemonade - ₹187
2. Mango Lassi - ₹225
3. Iced Tea - ₹150
4. Smoothie - ₹300
5. Soda - ₹112
6. Milkshake - ₹262
Would you like to order something else? (1 for Yes/2 for NO): 2
Exiting the menu. Enjoy your meal!
9. Conclusion
Next Steps
Future enhancements include integrating a Graphical User Interface (GUI) with Tkinter
or PyQt, implementing a billing system for order management, and adding online
ordering capabilities with Flask or Django. Further improvements involve allowing menu
item customization, enhancing data management with databases like SQLite, developing
a mobile app, adding multilingual support, and exploring advanced features like voice
recognition and machine learning for dish recommendations.