# ozkanyildizz/student-manager-app architecture

> Architecture diagram of the GitHub repository ozkanyildizz/student-manager-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ozkanyildizz/student-manager-app
- Repository: https://github.com/ozkanyildizz/student-manager-app

## Overview

##### Project type and purpose
- This is a simple, single‐executable console application written in C++.
- Its purpose is to manage an in‐memory list of students: add, delete, list, and update grades via a menu‐driven interface.

##### File structure
- Top level:
- Student Manager App.sln – Visual Studio solution
- Student Manager App (folder) – contains the entire code base
- Inside “Student Manager App”:
- Student Manager App.cpp – single source file with all logic
- Project and filter files (.vcxproj, .vcxproj.filters)
- There are no separate directories for UI, business logic, or data storage; all code lives in one .cpp

##### README for additional insights
- Dynamic memory is used to store student records
- Menu‐driven console UI
- Core operations: Add, Delete, List, Update

a. Main components
- Console UI / Menu Layer
- Student Manager (Controller/Service)
- Student Repository (in‐memory data store)
- Student Entity (struct/class)
b. Relationships and interactions
- User → Console UI: selects options
- Console UI → Student Manager: invokes add/delete/list/update
- Student Manager ↔ Student Repository: reads/writes dynamic array or vector
- Student Repository ↔ Student Entity: allocates, deallocates, and returns records
- Student Manager → Console UI: returns operation results (success, list data)
c. Architectural patterns or design principles
- Separation of concerns: isolate UI logic from data handling
- Single Responsibility: Student Entity holds data, Repository manages storage, Manager implements operations
- Use of dynamic memory (or a std::vector) for storage
d. Technologies / libraries
- C++ standard library for I/O (iostream) and dynamic memory
- Optional: std::vector or raw pointers/new/delete for storage

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Project Files
    subgraph "Project Files"
        Solution["Student Manager App.sln"]:::external
        ProjectFile["Student Manager App.vcxproj"]:::external
    end

    %% UI Layer
    subgraph "UI Layer"
        Console["Console UI / Menu"]:::ui
        AddOption["Add Student"]:::ui
        DeleteOption["Delete Student"]:::ui
        ListOption["List Students"]:::ui
        UpdateOption["Update Grade"]:::ui
    end

    %% Business Logic Layer
    subgraph "Business Logic Layer"
        Manager["Student Manager"]:::logic
    end

    %% Data Layer
    subgraph "Data Layer"
        Repo["Student Repository\n(In-Memory)"]:::data
        Entity["Student Entity"]:::data
    end

    %% User interaction
    User["User"]:::external

    %% Connections
    User -->|"interacts with"| Console
    Console -->|"Select Option"| AddOption
    Console -->|"Select Option"| DeleteOption
    Console -->|"Select Option"| ListOption
    Console -->|"Select Option"| UpdateOption

    AddOption -->|"calls addStudent()"| Manager
    DeleteOption -->|"calls deleteStudent()"| Manager
    ListOption -->|"calls listStudents()"| Manager
    UpdateOption -->|"calls updateGrade()"| Manager

    Manager -->|"stores/retrieves"| Repo
    Repo -->|"manages records"| Entity
    Repo -->|"returns data"| Manager
    Manager -->|"operation results"| Console
    Console -->|"display results"| User

    %% Click events
    click Solution "https://github.com/ozkanyildizz/student-manager-app/blob/master/Student Manager App.sln"
    click ProjectFile "https://github.com/ozkanyildizz/student-manager-app/blob/master/Student Manager App/Student Manager App.vcxproj"
    click Console "https://github.com/ozkanyildizz/student-manager-app/blob/master/Student Manager App/Student Manager App.cpp"
    click Manager "https://github.com/ozkanyildizz/student-manager-app/blob/master/Student Manager App/Student Manager App.cpp"
    click Repo "https://github.com/ozkanyildizz/student-manager-app/blob/master/Student Manager App/Student Manager App.cpp"
    click Entity "https://github.com/ozkanyildizz/student-manager-app/blob/master/Student Manager App/Student Manager App.cpp"

    %% Styles
    classDef external fill:#f9f,stroke:#333,stroke-width:1px;
    classDef ui fill:#bbf,stroke:#333,stroke-width:1px;
    classDef logic fill:#bfb,stroke:#333,stroke-width:1px;
    classDef data fill:#fbf,stroke:#333,stroke-width:1px;
```
