How trishdestiny/ldcw6123-tng-project works
This is a single-file C++ console simulator for a Touch ’n Go transit and financial ecosystem. The user selects transit payments, NFC card reloads, GO+ yield projections, or transaction history from a menu. Payment and reload operations update an in-memory account and record successful transactions; history displays those records. The graph reflects only relationships visible in the supplied excerpts; other implementation details are not inferred.
Main entry points: main.cpp Menu dispatcher
Components 10
Console interaction
- Menu dispatcher
main.cpp - Account dashboard
main.cpp - Input validation
main.cpp
Account operations
- Account balances
main.cpp - Transit payment
main.cpp - NFC card reload
main.cpp - GO+ yield projection
main.cpp
Transaction records
- Transaction history
main.cpp - Receipt output
main.cpp
Other components
- Console user
Connections 17
- Console user → Menu dispatcher: chooses option
main.cpp - Menu dispatcher → Account dashboard: calls
main.cpp - Menu dispatcher → Input validation: validates choice
main.cpp - Menu dispatcher → Transit payment: dispatches
main.cpp - Menu dispatcher → NFC card reload: dispatches
main.cpp - Menu dispatcher → GO+ yield projection: dispatches
main.cpp - Menu dispatcher → Transaction history: displays history
main.cpp - Transit payment → Input validation: validates selections
main.cpp - NFC card reload → Input validation: validates selections
main.cpp - GO+ yield projection → Input validation: validates selections
main.cpp - Transit payment → Account balances: updates balances
main.cpp - NFC card reload → Account balances: updates balances
main.cpp - GO+ yield projection → Account balances: reads principal
main.cpp - Transit payment → Transaction history: records payment
main.cpp - NFC card reload → Transaction history: records reload
main.cpp - Transit payment → Receipt output: prints receipt
main.cpp - NFC card reload → Receipt output: prints receipt
main.cpp