ImSifat7/Python-Restaurant-Order-System
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Β | Β | |||
Β | Β | |||
Β | Β | |||
Repository files navigation
π½οΈ Python Restaurant Order System A simple and interactive command-line restaurant ordering system built with Python. This project simulates a restaurant ordering experience where users can browse menu items, add them to their cart, and calculate their total bill. β¨ Features π Interactive Menu Display: Shows available items with prices π Order Management: Add multiple items to your order π° Automatic Total Calculation: Real-time bill calculation β Input Validation: Checks if items exist in the menu π Order Summary: Detailed receipt of all ordered items π Flexible Ordering: Continue adding items until satisfied π Menu Items Item Price Pizza $40 Burger $25 Pasta $30 Salad $15 Dessert $10 Coffee $50 π How to Use Clone the repository: bash git clone https://github.com/yourusername/python-restaurant-order.git cd python-restaurant-order Run the program: bash python restaurant_order.py Follow the prompts: Enter items you want to order Confirm additions to your order View your final bill π Example Usage text Welcome to the Python Hotel! Pizza: $40 Burger: $25 Pasta: $30 Salad: $15 Dessert: $10 Coffee: $50 Please enter the first item you would like to order: Pizza Your Item Pizza has been added to your order Would you like to add another item to your order? (Yes/No): Yes Please enter the item you would like to add: Salad Item Salad has been added to your order Would you like to add another item? (Yes/No): No === Order Summary === Pizza: $40 Salad: $15 Total Amount: $55 Thank you for your order! π οΈ Technologies Used Python 3.x Dictionaries for menu storage Control flow (if-else, while loops) String formatting for output List manipulation for order tracking π Project Structure text python-restaurant-order/ β βββ restaurant_order.py # Main program file βββ README.md # This file βββ requirements.txt # Dependencies (none for this project) π§ͺ Learning Objectives This project demonstrates: Basic Python syntax and control structures Dictionary manipulation for data storage User input handling and validation Loop implementation for continuous operations String formatting for clean output Simple program flow management π§ Customization Want to modify the menu? Simply edit the menu dictionary in the code: python menu = { 'Item Name': price, 'Another Item': price, # Add more items as needed } π€ Contributing Contributions are welcome! Feel free to: Add more menu items Implement a GUI version Add discount calculations Include tax calculations Create a database for menu items π License This project is open source and available under the MIT License.