Skip to content

Commit 2939dee

Browse files
authored
Merge pull request #2 from Lincoln-Madaraka/main
Improved variable names and README instructions
2 parents f086473 + 04876a7 commit 2939dee

File tree

4 files changed

+108
-20
lines changed

4 files changed

+108
-20
lines changed

README.md

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
🍔 Command-Line Food Ordering App
2+
A Python-based command-line application that simulates a food ordering system. Forked and enhanced from vikram-singh9/Order_Management_App_Python, this project has been upgraded with better user experience, extended functionalities, and cleaner code structure.
3+
4+
🚀 Features
5+
📋 Menu Display – Browse through a categorized food menu (e.g., Main Course, Drinks, Desserts).
6+
7+
🛒 Order Management – Add, remove, and view items in your cart before placing an order.
8+
9+
💸 Billing System – Get an itemized bill with totals and taxes at checkout.
10+
11+
🔁 Repeat Ordering – Loop back to main menu after completing an order to continue or exit.
12+
13+
🧼 Code Improvements – Modular structure, better input handling, and user prompts.
14+
15+
🛠 Modifications by Lincoln Madaraka
16+
✅ Improved input validation (handles edge cases and invalid entries more gracefully).
17+
18+
✅ Added category-based filtering for menu items.
19+
20+
✅ Enhanced order summary formatting for better readability.
21+
22+
✅ Modularized code into multiple functions for clarity and maintainability.
23+
24+
✅ Customizable tax and discount features added for experimentation.
25+
26+
✅ Added session timestamps and order IDs for better tracking (optional).
27+
28+
📂 Project Structure
29+
bash
30+
Copy
31+
Edit
32+
Order_Management_App/
33+
├── main.py # Entry point for the CLI app
34+
├── menu.py # Contains the menu data and helper functions
35+
├── order.py # Functions related to order/cart management
36+
├── billing.py # Billing and invoice generation logic
37+
├── utils.py # Utility functions (e.g., input validation)
38+
└── README.md # Project documentation
39+
Note: Some of these files may vary depending on your structure; feel free to adjust.
40+
41+
▶️ Getting Started
42+
🔧 Prerequisites
43+
Python 3.7+
44+
45+
No external packages required (fully standard library)
46+
47+
📦 Installation
48+
Clone the repository:
49+
50+
bash
51+
Copy
52+
Edit
53+
git clone https://github.com/Lincoln-Madaraka/Order_Management_App_Python.git
54+
cd Order_Management_App_Python
55+
Run the application:
56+
57+
bash
58+
Copy
59+
Edit
60+
python main.py
61+
🧪 Example Usage
62+
bash
63+
Copy
64+
Edit
65+
Welcome to the Food Ordering App!
66+
67+
Please choose an option:
68+
1. View Menu
69+
2. Place Order
70+
3. View Cart
71+
4. Checkout
72+
5. Exit
73+
74+
----- MENU -----
75+
1. Chicken - $5.99
76+
2. Spring - $2.99
77+
3. Soda - $1.99
78+
...
79+
At checkout:
80+
81+
pgsql
82+
Copy
83+
Edit
84+
----- ORDER SUMMARY -----
85+
1 x Rolls $5.99
86+
2 x Fries $5.98
87+
-------------------------
88+
Subtotal: $11.97
89+
Tax (10%): $1.20
90+
Total: $13.17
91+
92+
Thank you for your order!
93+
🔍 Future Improvements
94+
Add JSON or SQLite-based order history persistence.
95+
96+
Support for user profiles and saved preferences.
97+
98+
Add CLI color formatting for enhanced visuals using colorama.
99+
100+
Enable export of bill to text or PDF.

myapp/README.md

Whitespace-only changes.

myapp/main.py

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,23 @@
1414

1515
print("🍽️ Welcome to Vikram's Restaurant!")
1616
print("Here's our menu")
17-
print("""
18-
"Paneer Tikka": 180,
19-
"Chicken Wings": 220,
20-
"Spring Rolls": 160,
21-
"French Fries": 120,
22-
"Butter Chicken": 320,
23-
"Paneer Butter Masala": 280,
24-
"Veg Biryani": 200,
25-
"Chicken Biryani": 250,
26-
"Tandoori Roti": 20,
27-
"Butter Naan": 30,
28-
""")
29-
17+
for i, meal in enumerate(menu.keys(), start=1):
18+
print(f"{i}. {meal}")
3019
# Show menu to user
3120
print("🍽️ Welcome to Vikram's Restaurant!")
32-
print("Here's our menu:\n")
33-
for item, price in restaurant_menu.items():
21+
print("Here's our individual menu food prices\n")
22+
for item, price in menu.items():
3423
print(f"{item} - ₹{price}")
3524

3625
print("\n📝 Let's take your order (type 'done' to finish):\n")
3726

3827
# Take order from user
3928
order = {}
4029
while True:
41-
item = input("Enter item name: ").strip()
30+
item = input("Enter item name(If entered all type \"done\"): ").strip()
4231
if item.lower() == 'done':
4332
break
44-
elif item in restaurant_menu:
33+
elif item in menu:
4534
try:
4635
quantity = int(input(f"Enter quantity for {item}: "))
4736
if item in order:
@@ -57,11 +46,11 @@
5746
print("\n🧾 Your Bill Summary:\n")
5847
total = 0
5948
for item, quantity in order.items():
60-
price = restaurant_menu[item]
49+
price = menu[item]
6150
cost = price * quantity
6251
total += cost
6352
print(f"{item} x {quantity} = ₹{cost}")
6453

6554
print(f"\n💰 Total Amount to Pay: ₹{total}")
66-
print("\n🙏 Thank you for dining with us, come again!")
55+
print("\n🙏 Thank you for dining with us, you're welcome again!")
6756

readme.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)