# mahendra64/atm-management-system architecture

> Architecture diagram of the GitHub repository mahendra64/atm-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mahendra64/atm-management-system
- Repository: https://github.com/mahendra64/atm-management-system

## Overview

A small interactive ATM program: users create an account or log in, then check their balance, withdraw, or deposit. Account records are loaded from and saved to a local file. All runtime behavior is implemented in ATM.c; the edges reflect calls visible in that file.

Main entry points: [`ATM.c`](https://github.com/mahendra64/atm-management-system/blob/main/ATM.c) (Program Menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("ATM User"))
node_main["Program Menu<br/>[ATM.c]"]
node_create["Account Creation<br/>[ATM.c]"]
node_login["PIN Login<br/>[ATM.c]"]
node_lookup["Account Lookup<br/>[ATM.c]"]
node_balance["Balance Check<br/>[ATM.c]"]
node_withdraw["Withdrawal<br/>[ATM.c]"]
node_deposit["Deposit<br/>[ATM.c]"]
node_persistence["Account Persistence<br/>[ATM.c]"]
node_account_file[("accounts.dat")]

node_user -->|"uses"| node_main
node_main -->|"loads accounts"| node_persistence
node_main -->|"creates account"| node_create
node_main -->|"authenticates"| node_login
node_login -->|"finds account"| node_lookup
node_main -->|"checks balance"| node_balance
node_main -->|"withdraws funds"| node_withdraw
node_main -->|"deposits funds"| node_deposit
node_create -->|"saves account"| node_persistence
node_withdraw -->|"saves balance"| node_persistence
node_deposit -->|"saves balance"| node_persistence
node_persistence -->|"reads and writes"| node_account_file

click node_main "https://github.com/mahendra64/atm-management-system/blob/main/ATM.c"
click node_create "https://github.com/mahendra64/atm-management-system/blob/main/ATM.c"
click node_login "https://github.com/mahendra64/atm-management-system/blob/main/ATM.c"
click node_lookup "https://github.com/mahendra64/atm-management-system/blob/main/ATM.c"
click node_balance "https://github.com/mahendra64/atm-management-system/blob/main/ATM.c"
click node_withdraw "https://github.com/mahendra64/atm-management-system/blob/main/ATM.c"
click node_deposit "https://github.com/mahendra64/atm-management-system/blob/main/ATM.c"
click node_persistence "https://github.com/mahendra64/atm-management-system/blob/main/ATM.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_main,node_create,node_login,node_lookup,node_balance,node_withdraw,node_deposit,node_persistence toneTeal
class node_account_file toneAmber
```

## Components

### Other components

- **ATM User**
- [Program Menu](https://github.com/mahendra64/atm-management-system/blob/main/ATM.c): `ATM.c`
- [Account Creation](https://github.com/mahendra64/atm-management-system/blob/main/ATM.c): `ATM.c`
- [PIN Login](https://github.com/mahendra64/atm-management-system/blob/main/ATM.c): `ATM.c`
- [Account Lookup](https://github.com/mahendra64/atm-management-system/blob/main/ATM.c): `ATM.c`
- [Balance Check](https://github.com/mahendra64/atm-management-system/blob/main/ATM.c): `ATM.c`
- [Withdrawal](https://github.com/mahendra64/atm-management-system/blob/main/ATM.c): `ATM.c`
- [Deposit](https://github.com/mahendra64/atm-management-system/blob/main/ATM.c): `ATM.c`
- [Account Persistence](https://github.com/mahendra64/atm-management-system/blob/main/ATM.c): `ATM.c`
- **accounts.dat**

## Connections

- ATM User → Program Menu: uses (evidence: `ATM.c`)
- Program Menu → Account Persistence: loads accounts (evidence: `ATM.c`)
- Program Menu → Account Creation: creates account (evidence: `ATM.c`)
- Program Menu → PIN Login: authenticates (evidence: `ATM.c`)
- PIN Login → Account Lookup: finds account (evidence: `ATM.c`)
- Program Menu → Balance Check: checks balance (evidence: `ATM.c`)
- Program Menu → Withdrawal: withdraws funds (evidence: `ATM.c`)
- Program Menu → Deposit: deposits funds (evidence: `ATM.c`)
- Account Creation → Account Persistence: saves account (evidence: `ATM.c`)
- Withdrawal → Account Persistence: saves balance (evidence: `ATM.c`)
- Deposit → Account Persistence: saves balance (evidence: `ATM.c`)
- Account Persistence → accounts.dat: reads and writes (evidence: `ATM.c`)
