How lakshminarayanasrikar41-prog/risksheild works
RISKSHIELD is a single-file C console application for recording, assessing, viewing, and searching transactions. The user workflow runs through the menu in main: add a validated transaction, calculate and classify its risk, then view or search records and explicitly save them. On startup, main loads saved records from transactions.txt. The graph reflects the one source file and documented text-file storage; no separate modules are present.
Main entry points: RISKSHEILD_FINAL_CODE.C Menu and dispatch
Components 11
Console workflow
- Menu and dispatch
RISKSHEILD_FINAL_CODE.C - Add transaction
RISKSHEILD_FINAL_CODE.C - View transactions
RISKSHEILD_FINAL_CODE.C - Search transaction
RISKSHEILD_FINAL_CODE.C
Risk assessment
- Calculate risk score
RISKSHEILD_FINAL_CODE.C - Assign risk level
RISKSHEILD_FINAL_CODE.C
Transaction storage
- Transaction array
RISKSHEILD_FINAL_CODE.C - Load records
RISKSHEILD_FINAL_CODE.C - Save records
RISKSHEILD_FINAL_CODE.C - transactions.txt
Other components
- Console user
Connections 16
- Console user → Menu and dispatch: chooses options
- Menu and dispatch → Console user: prints results
- Menu and dispatch → Load records: calls at startup
- Menu and dispatch → Add transaction: dispatches
- Menu and dispatch → View transactions: dispatches
- Menu and dispatch → Search transaction: dispatches
- Menu and dispatch → Save records: dispatches
- Add transaction → Calculate risk score: calls
- Add transaction → Assign risk level: calls
- Add transaction → Transaction array: updates
- View transactions → Transaction array: reads
- Search transaction → Transaction array: searches
- Load records → transactions.txt: reads
- Load records → Transaction array: loads
- Save records → Transaction array: reads
- Save records → transactions.txt: writes