Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

0 watching

Forks

Contributors

Languages