How isayagudule-wq/mamaneema works
Mama Neema’s Shop is a menu-driven, in-memory C++ shop application. The main workflow is the cashier entering basket items, validating stock, calculating discounts and rounded totals, accepting payment, issuing change, and committing stock and daily sales totals. The same program also supports product management and end-of-day reporting. The standalone A and B files are exercise programs rather than runtime services, so they are represented as a separate learning branch. The shop excerpt is partial; edges reflect only visible calls or README-described behavior.
Main entry points: shop.cpp Sale workflow · a1.cpp Basket receipt example · a2.cpp Discount ordering example · a3.cpp Stock validation example
Components 23
Shop runtime
- Shop menu
shop.cpp - Product catalog
shop.cpp - Product management
shop.cpp - Sale workflow
shop.cpp - Basket stock checks
shop.cpp - Discount calculation
shop.cpp - Payment validation
shop.cpp - Change breakdown
shop.cpp - Sales and stock state
shop.cpp - End-of-day report
shop.cpp
Standalone exercises
- Basket receipt example
a1.cpp - Discount ordering example
a2.cpp - Stock validation example
a3.cpp - Change example
a4.cpp - C++ concept examples
b1.cpp - Percentage arithmetic
b2.cpp - Rounding example
b3.cpp - Stock iteration example
b4.cpp - Name matching example
b5.cpp - Menu input example
b6.cpp - Product data example
b7.cpp - Reference semantics
b8.cpp
Other components
- Cashier
Connections 24
- Cashier → Shop menu: selects options
README.md - Shop menu → Product management: offers management
shop.cpp - Shop menu → Sale workflow: starts sale
shop.cpp - Shop menu → End-of-day report: shows report
shop.cpp - Product management → Product catalog: updates catalog
shop.cpp - Sale workflow → Product catalog: looks up items
shop.cpp - Sale workflow → Basket stock checks: checks quantities
shop.cpp - Sale workflow → Discount calculation: calculates total
shop.cpp - Sale workflow → Payment validation: validates payment
shop.cpp - Sale workflow → Change breakdown: prints change
shop.cpp - Sale workflow → Sales and stock state: commits sale
shop.cpp - End-of-day report → Sales and stock state: reads totals
shop.cpp - Cashier → Basket receipt example: runs example
README.md - Cashier → Discount ordering example: runs example
README.md - Cashier → Stock validation example: runs example
README.md - Cashier → Change example: runs example
README.md - Cashier → C++ concept examples: runs exercise
README.md - Cashier → Percentage arithmetic: runs exercise
README.md - Cashier → Rounding example: runs exercise
README.md - Cashier → Stock iteration example: runs exercise
README.md - Cashier → Name matching example: runs exercise
README.md - Cashier → Menu input example: runs exercise
README.md - Cashier → Product data example: runs exercise
README.md - Cashier → Reference semantics: runs exercise
README.md