# atharvagupta0/student-record-and-result-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/atharvagupta0/student-record-and-result-management-system
- Repository: https://github.com/atharvagupta0/student-record-and-result-management-system

## Overview

This is a menu-driven C application for managing student records and semester results. The user selects an operation in the console; records are loaded from a binary file at startup, queried or changed in memory, and saved after additions and deletions. Its domain capabilities include validation, search, display, sorting, CGPA and year averages, and a deterministic academic advisor. The implementation is concentrated in one source file. Edges for capabilities described only in the README cite that documentation; omitted source excerpts limit verification of their internal calls.

Main entry points: [`Code/main.c`](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c) (Menu and dispatch), [`DataFiles/students.dat`](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/DataFiles/students.dat) (Binary record file)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Console workflow"]
  node_menu["Menu and dispatch<br/>[main.c]"]
  node_input["Input validation<br/>[main.c]"]
end

subgraph group_records["Student records"]
  node_record_ops["Record operations<br/>[main.c]"]
  node_search["Search records<br/>[main.c]"]
  node_display["Record display<br/>[main.c]"]
  node_sorting["Sorted display<br/>[main.c]"]
  node_store[("Binary record file<br/>[students.dat]")]
end

subgraph group_academics["Academic results"]
  node_cgpa["CGPA calculation<br/>[main.c]"]
  node_year_avg["Year averages<br/>[main.c]"]
  node_advisor["Academic advisor<br/>[main.c]"]
end

node_user(("User"))

node_user -->|"chooses operation"| node_menu
node_menu -->|"validates input"| node_input
node_menu -->|"dispatches"| node_record_ops
node_menu -->|"dispatches"| node_search
node_menu -->|"dispatches"| node_display
node_menu -->|"dispatches"| node_sorting
node_menu -->|"dispatches"| node_year_avg
node_menu -->|"dispatches"| node_advisor
node_menu -->|"loads at startup"| node_store
node_record_ops -->|"saves changes"| node_store
node_search -->|"shows matches"| node_display
node_display -->|"calculates result"| node_cgpa
node_year_avg -->|"averages results"| node_cgpa
node_advisor -->|"uses result"| node_cgpa

click node_menu "https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c"
click node_input "https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c"
click node_record_ops "https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c"
click node_search "https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c"
click node_display "https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c"
click node_sorting "https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c"
click node_store "https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/DataFiles/students.dat"
click node_cgpa "https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c"
click node_year_avg "https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c"
click node_advisor "https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.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_menu,node_input,node_user toneBlue
class node_record_ops,node_search,node_display,node_sorting,node_store toneAmber
class node_cgpa,node_year_avg,node_advisor toneMint
```

## Components

### Console workflow

- [Menu and dispatch](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c): `Code/main.c`
- [Input validation](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c): `Code/main.c`

### Student records

- [Record operations](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c): `Code/main.c`
- [Search records](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c): `Code/main.c`
- [Record display](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c): `Code/main.c`
- [Sorted display](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c): `Code/main.c`
- [Binary record file](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/DataFiles/students.dat): `DataFiles/students.dat`

### Academic results

- [CGPA calculation](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c): `Code/main.c`
- [Year averages](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c): `Code/main.c`
- [Academic advisor](https://github.com/atharvagupta0/student-record-and-result-management-system/blob/main/Code/main.c): `Code/main.c`

### Other components

- **User**

## Connections

- User → Menu and dispatch: chooses operation (evidence: `README.md`)
- Menu and dispatch → Input validation: validates input (evidence: `Code/main.c`)
- Menu and dispatch → Record operations: dispatches (evidence: `Code/main.c`)
- Menu and dispatch → Search records: dispatches (evidence: `Code/main.c`)
- Menu and dispatch → Record display: dispatches (evidence: `README.md`)
- Menu and dispatch → Sorted display: dispatches (evidence: `Code/main.c`)
- Menu and dispatch → Year averages: dispatches (evidence: `Code/main.c`)
- Menu and dispatch → Academic advisor: dispatches (evidence: `Code/main.c`)
- Menu and dispatch → Binary record file: loads at startup (evidence: `Code/main.c`)
- Record operations → Binary record file: saves changes (evidence: `Code/main.c`)
- Search records → Record display: shows matches (evidence: `README.md`)
- Record display → CGPA calculation: calculates result (evidence: `Code/main.c`)
- Year averages → CGPA calculation: averages results (evidence: `Code/main.c`)
- Academic advisor → CGPA calculation: uses result (evidence: `README.md`)
