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.
- 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.txtandgame_data.txt).
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.
- Ensure a C++ compiler (such as GCC/MinGW) is installed on your system.
- Compile the source file:
g++ mi_brews.cpp -o mi_brews