# yorush1/finalsprojects architecture

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

- Interactive diagram: https://gitdiagram.com/yorush1/finalsprojects
- Repository: https://github.com/yorush1/finalsprojects

## Overview

This is a small interactive attendance program. A user chooses an option in a command-line loop to add a student, mark attendance, view records, or exit. Student names and statuses live only in an in-memory dictionary, so records do not persist between runs. The stages below are inline branches in the same file, not separate functions; the graph reflects those code paths without implying a more elaborate architecture.

Main entry points: [`main.py`](https://github.com/yorush1/finalsprojects/blob/main/main.py) (Menu loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_attendance["Attendance CLI"]
  node_menu["Menu loop<br/>[main.py]"]
  node_registration["Student registration<br/>[main.py]"]
  node_marking["Mark attendance<br/>[main.py]"]
  node_viewing["View attendance<br/>[main.py]"]
  node_records[("Student records<br/>[main.py]")]
end

node_user(("User"))

node_user -->|"chooses options"| node_menu
node_menu -->|"dispatches add"| node_registration
node_menu -->|"dispatches mark"| node_marking
node_menu -->|"dispatches view"| node_viewing
node_registration -->|"adds student"| node_records
node_marking -->|"updates status"| node_records
node_viewing -->|"reads records"| node_records
node_menu -->|"prints prompts"| node_user

click node_menu "https://github.com/yorush1/finalsprojects/blob/main/main.py"
click node_registration "https://github.com/yorush1/finalsprojects/blob/main/main.py"
click node_marking "https://github.com/yorush1/finalsprojects/blob/main/main.py"
click node_viewing "https://github.com/yorush1/finalsprojects/blob/main/main.py"
click node_records "https://github.com/yorush1/finalsprojects/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_registration,node_marking,node_viewing,node_records,node_user toneBlue
```

## Components

### Attendance CLI

- [Menu loop](https://github.com/yorush1/finalsprojects/blob/main/main.py): `main.py`
- [Student registration](https://github.com/yorush1/finalsprojects/blob/main/main.py): `main.py`
- [Mark attendance](https://github.com/yorush1/finalsprojects/blob/main/main.py): `main.py`
- [View attendance](https://github.com/yorush1/finalsprojects/blob/main/main.py): `main.py`
- [Student records](https://github.com/yorush1/finalsprojects/blob/main/main.py): `main.py`

### Other components

- **User**

## Connections

- User → Menu loop: chooses options (evidence: `main.py`)
- Menu loop → Student registration: dispatches add (evidence: `main.py`)
- Menu loop → Mark attendance: dispatches mark (evidence: `main.py`)
- Menu loop → View attendance: dispatches view (evidence: `main.py`)
- Student registration → Student records: adds student (evidence: `main.py`)
- Mark attendance → Student records: updates status (evidence: `main.py`)
- View attendance → Student records: reads records (evidence: `main.py`)
- Menu loop → User: prints prompts (evidence: `main.py`)
