# piyas61/student-management-system-java architecture

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

- Interactive diagram: https://gitdiagram.com/piyas61/student-management-system-java
- Repository: https://github.com/piyas61/student-management-system-java

## Overview

This is a console-based Java student record manager. A user selects an operation in the menu; the manager performs add, update, search, view, or delete against in-memory students, while add/update collect subject marks and credits and calculate GPA. The manager loads records at startup and persists mutations as CSV. The README also advertises input validation and GPA calculation, both represented in the student and manager components. Relationships are limited to calls visible in the excerpts; no separate external database or service is shown.

Main entry points: [`StudentManager.java`](https://github.com/piyas61/student-management-system-java/blob/main/StudentManager.java) (Record operations), [`MainSystem.java`](https://github.com/piyas61/student-management-system-java/blob/main/MainSystem.java) (Menu and dispatch), [`Student.java`](https://github.com/piyas61/student-management-system-java/blob/main/Student.java) (Student data and GPA), [`FileHandler.java`](https://github.com/piyas61/student-management-system-java/blob/main/FileHandler.java) (CSV file handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Console interaction"]
  node_menu["Menu and dispatch<br/>[MainSystem.java]"]
end

subgraph group_records["Student records"]
  node_manager["Record operations"]
  node_student["Student data and GPA<br/>[Student.java]"]
end

subgraph group_persistence["CSV persistence"]
  node_file["CSV file handler<br/>[FileHandler.java]"]
  node_csv[("students.csv")]
end

node_user(("User"))

node_user -->|"selects operation"| node_menu
node_menu -->|"dispatches CRUD"| node_manager
node_manager -->|"creates and displays"| node_student
node_manager -->|"loads and saves"| node_file
node_student -->|"collects subject input"| node_user
node_file -->|"reads and writes"| node_csv

click node_menu "https://github.com/piyas61/student-management-system-java/blob/main/MainSystem.java"
click node_manager "https://github.com/piyas61/student-management-system-java/blob/main/StudentManager.java"
click node_student "https://github.com/piyas61/student-management-system-java/blob/main/Student.java"
click node_file "https://github.com/piyas61/student-management-system-java/blob/main/FileHandler.java"

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_manager,node_student toneAmber
class node_file,node_csv toneMint
```

## Components

### Console interaction

- [Menu and dispatch](https://github.com/piyas61/student-management-system-java/blob/main/MainSystem.java): `MainSystem.java`

### Student records

- [Record operations](https://github.com/piyas61/student-management-system-java/blob/main/StudentManager.java): `StudentManager.java`
- [Student data and GPA](https://github.com/piyas61/student-management-system-java/blob/main/Student.java): `Student.java`

### CSV persistence

- [CSV file handler](https://github.com/piyas61/student-management-system-java/blob/main/FileHandler.java): `FileHandler.java`
- **students.csv**

### Other components

- **User**

## Connections

- User → Menu and dispatch: selects operation (evidence: `MainSystem.java`)
- Menu and dispatch → Record operations: dispatches CRUD (evidence: `MainSystem.java`)
- Record operations → Student data and GPA: creates and displays (evidence: `StudentManager.java`)
- Record operations → CSV file handler: loads and saves (evidence: `StudentManager.java`)
- Student data and GPA → User: collects subject input (evidence: `Student.java`)
- CSV file handler → students.csv: reads and writes (evidence: `FileHandler.java`)
