This Food Ordering App is a simple, interactive command-line application built in Python. It allows users to view a menu, add items to their cart, remove them, and checkout with a total price calculation. This project demonstrates the use of basic Python programming concepts including dictionaries, functions, loops, and handling user input.
- View Menu: Users can view a list of available food items along with their prices.
- Add Items to Cart: Users can add items to their cart.
- Remove Items from Cart: Users have the option to remove items from their cart if needed.
- Checkout: Users can checkout which displays the total price of the items in the cart.
To run this application, you need to have Python installed on your machine.
-
Clone this repository or download the source code.
-
Navigate to the directory where the application is stored.
-
Run the application using Python:
python main.py
Upon running the application, you will be presented with the menu. Follow the on-screen prompts to add or remove items from your cart, or to checkout.
Example:
Menu:
Burger - $5.99
Fries - $2.99
Drink - $1.99
Sushi - $9.99
Pizza - $7.99
Enter an item to add to cart, or type 'checkout' to checkout
>> Burger
Burger added to cart
Contributions to this project are welcome. Please fork the repository and submit a pull request with your proposed changes.
This project is open-source and available under the MIT License.