Welcome to the Food Ordering System! This Python-based application allows users to place an order by selecting menu items and calculating the total bill. It offers a simple interface for customers to choose from a menu and decide whether to add more items to their order.
- π Menu Items: The menu offers Pizza, Sandwich, Garlic Bread, and Cold Drink with their respective prices.
- π³ Bill Calculation: Automatically calculates the total bill based on the user's selections.
- π Order Summary: Displays the final bill with a summary of the items ordered.
- π Add More Items: Users can keep adding items to their order until they decide to stop.
- Python 3.x installed on your system.
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/food-ordering-system.git
Navigate into the project directory:
bash Copy code cd food-ordering-system Run the main.py script to start the food ordering system:
bash Copy code python main.py Follow the on-screen instructions:
Enter your name. Choose menu items (1-4) and confirm if you want to add more items. After you are done, the program will show the total bill and the order summary.
π§© Code Structure
display_menu(): Displays the available menu items and their prices. take_order(): Prompts the user for their name, takes their order, and calculates the total bill. Main Loop: The main loop allows users to keep adding items until they are done, and then it displays the total bill and order summary.
π How it works:
Welcome the Customer: The user is asked to enter their name. Menu Display: The system displays a menu with 4 food items and their prices. Item Selection: The customer selects the items by entering the corresponding number (1-4). Adding Items: The user can continue adding items until they decide to stop by typing "no" when asked if they want more items. Order Summary: Once the customer is finished, the program displays the total bill and the items they ordered.
π License This project is licensed under the MIT License
Feedback If you have any feedback or suggestions, please feel free to open an issue or contact us. mail:bhavnanahar245@gmail.comπ£
Made with β€οΈ by Bhavna