# ojaswip2828/cli-student-grade-calculator architecture

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

- Interactive diagram: https://gitdiagram.com/ojaswip2828/cli-student-grade-calculator
- Repository: https://github.com/ojaswip2828/cli-student-grade-calculator

## Overview

A small interactive CLI collects a student name, subject count, and marks; it totals and averages the marks, assigns a letter grade, then prints the result and pass/fail message. The workflow is implemented linearly in one file, with no persistence or separate service layers.

Main entry points: [`grade_calculator.py`](https://github.com/ojaswip2828/cli-student-grade-calculator/blob/main/grade_calculator.py) (CLI Input)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_student(("Student"))
node_cli_input["CLI Input"]
node_marks_calculation["Marks Calculation"]
node_grade_assignment["Grade Assignment"]
node_result_display["Result Display"]

node_student -->|"enters details"| node_cli_input
node_cli_input -->|"provides marks"| node_marks_calculation
node_marks_calculation -->|"provides average"| node_grade_assignment
node_grade_assignment -->|"provides grade"| node_result_display
node_result_display -->|"shows result"| node_student

click node_cli_input "https://github.com/ojaswip2828/cli-student-grade-calculator/blob/main/grade_calculator.py"
click node_marks_calculation "https://github.com/ojaswip2828/cli-student-grade-calculator/blob/main/grade_calculator.py"
click node_grade_assignment "https://github.com/ojaswip2828/cli-student-grade-calculator/blob/main/grade_calculator.py"
click node_result_display "https://github.com/ojaswip2828/cli-student-grade-calculator/blob/main/grade_calculator.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_student toneIndigo
class node_cli_input,node_marks_calculation,node_grade_assignment,node_result_display toneTeal
```

## Components

### Other components

- **Student**
- [CLI Input](https://github.com/ojaswip2828/cli-student-grade-calculator/blob/main/grade_calculator.py): `grade_calculator.py`
- [Marks Calculation](https://github.com/ojaswip2828/cli-student-grade-calculator/blob/main/grade_calculator.py): `grade_calculator.py`
- [Grade Assignment](https://github.com/ojaswip2828/cli-student-grade-calculator/blob/main/grade_calculator.py): `grade_calculator.py`
- [Result Display](https://github.com/ojaswip2828/cli-student-grade-calculator/blob/main/grade_calculator.py): `grade_calculator.py`

## Connections

- Student → CLI Input: enters details (evidence: `grade_calculator.py`)
- CLI Input → Marks Calculation: provides marks (evidence: `grade_calculator.py`)
- Marks Calculation → Grade Assignment: provides average (evidence: `grade_calculator.py`)
- Grade Assignment → Result Display: provides grade (evidence: `grade_calculator.py`)
- Result Display → Student: shows result (evidence: `grade_calculator.py`)
