# afeefa9500/testu architecture

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

- Interactive diagram: https://gitdiagram.com/afeefa9500/testu
- Repository: https://github.com/afeefa9500/testu

## Overview

testU is a menu-driven Java console examination system. Students register and log in through the main menu, take tests, manage profiles, and review scores; administrators log in to manage questions and view students. Runtime state is held in collections rather than persistent storage. Main.java and the user classes are excerpted; Test.java’s responsibilities and its role in question and score handling are documented in the README, but its implementation was not sampled.

Main entry points: [`Main.java`](https://github.com/afeefa9500/testu/blob/main/Main.java) (Menus and routing), [`Test.java`](https://github.com/afeefa9500/testu/blob/main/Test.java) (Test execution), [`Student.java`](https://github.com/afeefa9500/testu/blob/main/Student.java) (Student accounts), [`Admin.java`](https://github.com/afeefa9500/testu/blob/main/Admin.java) (Admin functions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application flow"]
  node_main["Menus and routing<br/>[Main.java]"]
end

subgraph group_identity["Users and profiles"]
  node_admin["Admin functions<br/>[Admin.java]"]
  node_student["Student accounts<br/>[Student.java]"]
  node_user["User profiles<br/>[User.java]"]
end

subgraph group_exam["Tests and questions"]
  node_test["Test execution<br/>[Test.java]"]
  node_question["Question bank<br/>[Question.java]"]
end

node_student_actor(("Student"))
node_admin_actor(("Administrator"))

node_student_actor -->|"uses menus"| node_main
node_admin_actor -->|"uses menus"| node_main
node_main -->|"registers and routes"| node_student
node_main -->|"authenticates and routes"| node_admin
node_main -->|"starts and manages"| node_test
node_student -->|"extends"| node_user
node_admin -->|"extends"| node_user
node_test -->|"manages and presents"| node_question
node_test -->|"records scores"| node_student

click node_main "https://github.com/afeefa9500/testu/blob/main/Main.java"
click node_admin "https://github.com/afeefa9500/testu/blob/main/Admin.java"
click node_student "https://github.com/afeefa9500/testu/blob/main/Student.java"
click node_user "https://github.com/afeefa9500/testu/blob/main/User.java"
click node_test "https://github.com/afeefa9500/testu/blob/main/Test.java"
click node_question "https://github.com/afeefa9500/testu/blob/main/Question.java"

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_main toneBlue
class node_admin,node_student,node_user toneAmber
class node_test,node_question toneMint
class node_student_actor,node_admin_actor toneIndigo
```

## Components

### Application flow

- [Menus and routing](https://github.com/afeefa9500/testu/blob/main/Main.java): `Main.java`

### Users and profiles

- [Admin functions](https://github.com/afeefa9500/testu/blob/main/Admin.java): `Admin.java`
- [Student accounts](https://github.com/afeefa9500/testu/blob/main/Student.java): `Student.java`
- [User profiles](https://github.com/afeefa9500/testu/blob/main/User.java): `User.java`

### Tests and questions

- [Test execution](https://github.com/afeefa9500/testu/blob/main/Test.java): `Test.java`
- [Question bank](https://github.com/afeefa9500/testu/blob/main/Question.java): `Question.java`

### Other components

- **Student**
- **Administrator**

## Connections

- Student → Menus and routing: uses menus (evidence: `README.md`)
- Administrator → Menus and routing: uses menus (evidence: `README.md`)
- Menus and routing → Student accounts: registers and routes (evidence: `Main.java`)
- Menus and routing → Admin functions: authenticates and routes (evidence: `Main.java`)
- Menus and routing → Test execution: starts and manages (evidence: `Main.java`)
- Student accounts → User profiles: extends (evidence: `Student.java`)
- Admin functions → User profiles: extends (evidence: `Admin.java`)
- Test execution → Question bank: manages and presents (evidence: `README.md`)
- Test execution → Student accounts: records scores (evidence: `README.md`)
