# abedmallahsc-ui/gpa-prediction architecture

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

- Interactive diagram: https://gitdiagram.com/abedmallahsc-ui/gpa-prediction
- Repository: https://github.com/abedmallahsc-ui/gpa-prediction

## Overview

This is a tiny command-line GPA/credit-hours script. The user enters a course count, credit hours, and marks; the script totals credit hours, maps the final entered mark to a letter-grade/GPA label, and prints both results. The mark loop overwrites the initial mark and returns only one grade, rather than computing an average. The graph reflects the shown code; there is no README or evidence of additional capabilities.

Main entry points: [`week2.py`](https://github.com/abedmallahsc-ui/gpa-prediction/blob/main/week2.py) (GPA entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_entry["GPA entry<br/>[week2.py]"]
node_credits["Credit total<br/>[week2.py]"]
node_grading["Grade lookup<br/>[week2.py]"]
node_results["Printed results<br/>[week2.py]"]

node_user -->|"enters values"| node_entry
node_entry -->|"calls"| node_credits
node_entry -->|"calls"| node_grading
node_entry -->|"prints"| node_results
node_results -->|"displays results"| node_user

click node_entry "https://github.com/abedmallahsc-ui/gpa-prediction/blob/main/week2.py"
click node_credits "https://github.com/abedmallahsc-ui/gpa-prediction/blob/main/week2.py"
click node_grading "https://github.com/abedmallahsc-ui/gpa-prediction/blob/main/week2.py"
click node_results "https://github.com/abedmallahsc-ui/gpa-prediction/blob/main/week2.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_user toneBlue
class node_entry,node_credits,node_grading,node_results toneTeal
```

## Components

### Other components

- **User**
- [GPA entry](https://github.com/abedmallahsc-ui/gpa-prediction/blob/main/week2.py): `week2.py`
- [Credit total](https://github.com/abedmallahsc-ui/gpa-prediction/blob/main/week2.py): `week2.py`
- [Grade lookup](https://github.com/abedmallahsc-ui/gpa-prediction/blob/main/week2.py): `week2.py`
- [Printed results](https://github.com/abedmallahsc-ui/gpa-prediction/blob/main/week2.py): `week2.py`

## Connections

- User → GPA entry: enters values (evidence: `week2.py`)
- GPA entry → Credit total: calls (evidence: `week2.py`)
- GPA entry → Grade lookup: calls (evidence: `week2.py`)
- GPA entry → Printed results: prints (evidence: `week2.py`)
- Printed results → User: displays results (evidence: `week2.py`)
