Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Mi-Brews Ordering System

A C++ console application that simulates a beverage shop ordering system. The program manages drinks, toppings, and checkout processing, alongside a loyalty reward mini-game for customers.

Features

  • Drink Menu: Displays categorized beverages (Caffeinated, Non-Caffeinated, and Specials) and optional toppings with real-time price calculations.
  • Order Management: Allows users to add, update quantities, or delete items before final billing.
  • Discounts System: Calculates price reductions based on chosen payment methods and special date matches (e.g., matching day and month numbers).
  • Loyalty & Mini-Game System: Features "Lucky Roll Showdown," a dice-rolling game that rewards users with loyalty points redeemable for free drinks.
  • Data Persistence: Saves and updates transaction histories and user game data across sessions using flat text files (order_history.txt and game_data.txt).

File Structure

  • mi_brews.cpp: The primary source code containing program logic, structures, and functions.
  • order_history.txt: Automatically generated file storing detailed receipt logs.
  • game_data.txt: Automatically generated file tracks the player's last played date and loyalty points balance.

Setup and Execution

  1. Ensure a C++ compiler (such as GCC/MinGW) is installed on your system.
  2. Compile the source file:
    g++ mi_brews.cpp -o mi_brews

About

A C++ console application that simulates a beverage shop ordering system. The program manages drinks, toppings, and checkout processing, alongside a loyalty reward mini-game for customers.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages