# zeadai/zead architecture

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

- Interactive diagram: https://gitdiagram.com/zeadai/zead
- Repository: https://github.com/zeadai/zead

## Overview

A small C++ console application records 30 days of attendance per student, calculates totals and percentages, then prints a report with a warning below 75%. The workflow and all implementation components are in main.cpp; no persistent storage or external integrations are shown.

Main entry points: [`main.cpp`](https://github.com/zeadai/zead/blob/main/main.cpp) (Program flow)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_student(("User"))
node_program["Program flow<br/>[main.cpp]"]
node_input["Attendance input<br/>[main.cpp]"]
node_records["Student records<br/>[main.cpp]"]
node_calculation["Attendance calculation<br/>[main.cpp]"]
node_report["Attendance report<br/>[main.cpp]"]

node_student -->|"starts and counts"| node_program
node_program -->|"calls input"| node_input
node_input -->|"writes attendance"| node_records
node_program -->|"calls calculation"| node_calculation
node_calculation -->|"updates totals"| node_records
node_program -->|"calls display"| node_report
node_report -->|"reads results"| node_records
node_report -->|"shows report"| node_student

click node_program "https://github.com/zeadai/zead/blob/main/main.cpp"
click node_input "https://github.com/zeadai/zead/blob/main/main.cpp"
click node_records "https://github.com/zeadai/zead/blob/main/main.cpp"
click node_calculation "https://github.com/zeadai/zead/blob/main/main.cpp"
click node_report "https://github.com/zeadai/zead/blob/main/main.cpp"

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 toneBlue
class node_program,node_input,node_records,node_calculation,node_report toneTeal
```

## Components

### Other components

- **User**
- [Program flow](https://github.com/zeadai/zead/blob/main/main.cpp): `main.cpp`
- [Attendance input](https://github.com/zeadai/zead/blob/main/main.cpp): `main.cpp`
- [Student records](https://github.com/zeadai/zead/blob/main/main.cpp): `main.cpp`
- [Attendance calculation](https://github.com/zeadai/zead/blob/main/main.cpp): `main.cpp`
- [Attendance report](https://github.com/zeadai/zead/blob/main/main.cpp): `main.cpp`

## Connections

- User → Program flow: starts and counts (evidence: `README.md`)
- Program flow → Attendance input: calls input (evidence: `main.cpp`)
- Attendance input → Student records: writes attendance (evidence: `main.cpp`)
- Program flow → Attendance calculation: calls calculation (evidence: `main.cpp`)
- Attendance calculation → Student records: updates totals (evidence: `main.cpp`)
- Program flow → Attendance report: calls display (evidence: `main.cpp`)
- Attendance report → Student records: reads results (evidence: `main.cpp`)
- Attendance report → User: shows report (evidence: `README.md`)
