How summerhor/atm_machine works
This is a console ATM application: a user logs in, then selects balance, deposit, withdrawal, currency-display, receipt, or transaction-history actions. Main coordinates login and the menu; ATMoperation handles account actions and delegates CSV persistence to CsvHandler. CSV files hold credentials, balances, and transaction records. Styling supplies terminal output colors. The graph follows the excerpts and README; unsampled implementation details are not inferred.
Main entry points: Main.java Menu and input · CsvHandler.java CSV handler · Authentication.java Authentication · ATMoperation.java ATM operations
Components 14
Console entry
- Menu and input
src/Main.java - Terminal styling
src/Styling.java
Account access
- Authentication
src/Authentication.java
ATM operations
- ATM operations
src/ATMoperation.java - Deposit
src/ATMoperation.java - Withdrawal
src/ATMoperation.java - Currency display
src/ATMoperation.java - Last receipt
src/ATMoperation.java - Transaction history
src/ATMoperation.java
CSV persistence
- User records
db/user_info.csv - CSV handler
src/CsvHandler.java - Balance records
db/balance_info.csv - Transaction records
db/transaction.csv
Other components
- ATM user
Connections 26
- ATM user → Menu and input: selects options
src/Main.java - Menu and input → CSV handler: loads users
src/Main.java - Menu and input → Authentication: authenticates
src/Main.java - Authentication → CSV handler: reads salt
src/Authentication.java - Menu and input → User records: reads credentials
src/Main.java - Authentication → User records: reads salt
src/Authentication.java - Menu and input → CSV handler: loads balance
src/Main.java - Menu and input → Balance records: loads balance
src/Main.java - Menu and input → ATM operations: dispatches actions
src/Main.java - ATM operations → Deposit: executes deposit
src/Main.java - ATM operations → Withdrawal: executes withdrawal
src/Main.java - Menu and input → Currency display: selects currency
src/Main.java - Menu and input → Last receipt: requests receipt
src/Main.java - Menu and input → Transaction history: requests history
src/Main.java - Deposit → CSV handler: saves balance
src/ATMoperation.java - Withdrawal → CSV handler: saves balance
src/ATMoperation.java - Deposit → CSV handler: records transaction
src/ATMoperation.java - Withdrawal → CSV handler: records transaction
src/ATMoperation.java - CSV handler → Balance records: updates balance
- CSV handler → Transaction records: appends records
- Last receipt → CSV handler: reads account
src/ATMoperation.java - Transaction history → CSV handler: loads history
src/ATMoperation.java - Transaction history → Transaction records: reads records
src/ATMoperation.java - Menu and input → Terminal styling: formats prompts
src/Main.java - Authentication → Terminal styling: formats feedback
src/Authentication.java - ATM operations → Terminal styling: formats output
src/ATMoperation.java