Skip to content

A simple terminal-based food ordering system built in C. Users can select from categories like Fast Food, Drinks, and Desserts, choose items, set quantities, and receive a final price summary.

Notifications You must be signed in to change notification settings

itsW0LFIX/Food-Ordering-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” C Food Ordering System

This is a simple Food Ordering System built in C. The user can select categories like Fast Food, Drinks, and Desserts, then choose items, set quantities, and receive a final price summary.

πŸ“‹ Features

  • πŸ—‚οΈ Menu categories: Fast Food, Drinks, Desserts
  • 🍟 Item selection with prices
  • πŸ”’ Quantity input per item
  • πŸ’° Auto subtotal and total calculation
  • 🧾 Order summary at the end

πŸ› οΈ How It Works

  1. User selects a category
  2. Chooses an item from the menu
  3. Inputs the quantity
  4. Program adds the item to the order
  5. At the end, all items with total price are displayed

βœ… Example Output

- Please choose a category:
 1. Fast Food
 2. Drinks
 3. Desserts
 0. Finish Order
 -> 1
- You selected Fast Food. Please choose an item: 
 1. Burger - 25 MAD
 2. Fries  - 10 MAD
 3. Pizza  - 40 MAD
 0. Back
-> 2
Enter quantity: 2
Fries added to your order.
Total: 20 MAD
...
🧾 Order Summary:
- 2 x Fries = 20 MAD
- 1 x Cola = 8 MAD
Total to pay: 28 MAD

🧠 Why This Project?

This is a good beginner-friendly project to learn:

  • Functions
  • Switch-case
  • Loops
  • Structs (for storing orders)
  • Basic logic building in C

πŸ“‚ Files

  • main.c β€” All the source code

πŸ‘¨β€πŸ’» Author

Made by itsW0LFIX β€” enjoy and feel free to contribute!

About

A simple terminal-based food ordering system built in C. Users can select from categories like Fast Food, Drinks, and Desserts, choose items, set quantities, and receive a final price summary.

Topics

Resources

Stars

Watchers

Forks

Languages