# karanyadav47/student-fee-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/karanyadav47/student-fee-management-system
- Repository: https://github.com/karanyadav47/student-fee-management-system

## Overview

This is a menu-driven student fee management console application. A user selects an operation; the application validates registration or payment input, updates in-memory student records, persists successful changes, and reports fee totals, dues, and status. Other menu workflows search by roll number or list students with outstanding dues. The single sampled source file contains the menu, domain operations, validation, and CSV persistence; the README documents the local data file and capabilities. The graph reflects that compact implementation rather than implying separate services or layers.

Main entry points: [`main.py`](https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py) (Menu loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Console interaction"]
  node_menu["Menu loop<br/>[main.py]"]
end

subgraph group_fees["Fee operations"]
  node_registration["Student registration<br/>[main.py]"]
  node_payment["Fee payment<br/>[main.py]"]
  node_search["Roll search<br/>[main.py]"]
  node_pending["Pending dues<br/>[main.py]"]
  node_fee_logic["Due and status<br/>[main.py]"]
end

subgraph group_records["Student records"]
  node_student_records[("In-memory records<br/>[main.py]")]
  node_file_records["CSV fee file"]
end

node_user(("User"))

node_user -->|"chooses operation"| node_menu
node_menu -->|"dispatches"| node_registration
node_menu -->|"dispatches"| node_payment
node_menu -->|"dispatches"| node_search
node_menu -->|"dispatches"| node_pending
node_menu -->|"loads and saves"| node_file_records
node_registration -->|"adds student"| node_student_records
node_registration -->|"checks duplicate"| node_search
node_registration -->|"saves change"| node_file_records
node_payment -->|"finds student"| node_search
node_payment -->|"checks due"| node_fee_logic
node_payment -->|"updates payment"| node_student_records
node_payment -->|"saves change"| node_file_records
node_search -->|"looks up roll"| node_student_records
node_search -->|"calculates display"| node_fee_logic
node_pending -->|"filters students"| node_student_records
node_pending -->|"calculates dues"| node_fee_logic
node_file_records -->|"loads records"| node_student_records

click node_menu "https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py"
click node_registration "https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py"
click node_payment "https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py"
click node_search "https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py"
click node_pending "https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py"
click node_fee_logic "https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py"
click node_student_records "https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py"

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_menu,node_user toneBlue
class node_registration,node_payment,node_search,node_pending,node_fee_logic toneAmber
class node_student_records,node_file_records toneMint
```

## Components

### Console interaction

- [Menu loop](https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py): `main.py`

### Fee operations

- [Student registration](https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py): `main.py`
- [Fee payment](https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py): `main.py`
- [Roll search](https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py): `main.py`
- [Pending dues](https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py): `main.py`
- [Due and status](https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py): `main.py`

### Student records

- [In-memory records](https://github.com/karanyadav47/student-fee-management-system/blob/main/main.py): `main.py`
- **CSV fee file**

### Other components

- **User**

## Connections

- User → Menu loop: chooses operation (evidence: `main.py`)
- Menu loop → Student registration: dispatches (evidence: `main.py`)
- Menu loop → Fee payment: dispatches (evidence: `main.py`)
- Menu loop → Roll search: dispatches (evidence: `main.py`)
- Menu loop → Pending dues: dispatches (evidence: `main.py`)
- Menu loop → CSV fee file: loads and saves (evidence: `main.py`)
- Student registration → In-memory records: adds student (evidence: `main.py`)
- Student registration → Roll search: checks duplicate (evidence: `main.py`)
- Student registration → CSV fee file: saves change (evidence: `main.py`)
- Fee payment → Roll search: finds student (evidence: `main.py`)
- Fee payment → Due and status: checks due (evidence: `main.py`)
- Fee payment → In-memory records: updates payment (evidence: `main.py`)
- Fee payment → CSV fee file: saves change (evidence: `main.py`)
- Roll search → In-memory records: looks up roll (evidence: `main.py`)
- Roll search → Due and status: calculates display (evidence: `main.py`)
- Pending dues → In-memory records: filters students (evidence: `main.py`)
- Pending dues → Due and status: calculates dues (evidence: `main.py`)
- CSV fee file → In-memory records: loads records (evidence: `main.py`)
