Skip to content

Angkon-Kar/Coffee-Ordering-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

☕ Coffee Ordering System

A console-based coffee ordering system built with C++, developed progressively across 5 versions — all inside a single cafe.cpp file, tracked using Git tags/releases.


🗂️ Version History

Release What's New
v1.0 Time-aware greeting, formatted menu display
v2.0 Item selection, quantity, subtotal + tax
v3.0 Size upcharge, milk type, temperature, struct/union
v4.0 Student discount, bulk reward, packaging fee, receipt
v5.0 Full experience — loyalty points, cart management, full validation ⭐

💡 To see any version's code: go to Releases → click a version → download cafe.cpp


🖼️ Output Previews

📸 v2.0 — Order Taking + Basic Pricing

v2.0 output

📸 v3.0 — Size & Customization System

v3.0 output

📸 v4.0 — Receipt + Discount System

v4.0 output

📸 v5.0 — Full Experience (Latest ⭐)

v5.0 output v5.0 output v5.0 output v5.0 output


✨ Features (v5.0 — Latest)

  • ☕ 8-item menu with size guide (Demi → Trenta)
  • 📐 6 size options with dynamic price upcharge
  • 🥛 Milk customization: Soy / Regular / Almond
  • 🌡️ Temperature: Hot or Iced
  • 🎓 Student discount (10% off)
  • 📦 Takeaway packaging fee
  • 🎁 Bulk order reward (free small cup for >10 items)
  • Loyalty Points System — earn 1 pt/$1, redeem every 50 pts
  • 🛒 Cart Management — add or remove items before checkout
  • Full Input Validation — no crashes on invalid input
  • 🧾 Formatted receipt with unique Order ID + date
  • ⏳ Animated barista progress bar

🚀 How to Compile & Run

g++ -std=c++11 -o cafe cafe.cpp -lpthread
./cafe

Works on Linux, macOS. On Windows use MinGW or WSL.


📁 Project Structure

coffee-ordering-system/
├── cafe.cpp            ← single source file (version controlled via Git tags)
├── Output/
│   ├── v2_output.png
│   ├── v3_output.png
│   ├── v4_output.png
│   ├── v5_output1.png
│   ├── v5_output2.png
│   ├── v5_output3.png
│   └── v5_output4.png
└── README.md

🛠️ Built With

  • Language: C++11
  • Libraries: <iostream>, <vector>, <iomanip>, <thread>, <chrono>, <ctime>
  • Concepts Used: Structs, Unions, Vectors, Switch-case, Input validation, Modular functions

👤 Author

Angkon Kar — Coffee Ordering System
Feel free to fork, star ⭐, or open an issue!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages