# kelvin020207-bit/algoritma-tugas architecture

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

- Interactive diagram: https://gitdiagram.com/kelvin020207-bit/algoritma-tugas
- Repository: https://github.com/kelvin020207-bit/algoritma-tugas

## Overview

This repository is a collection of independent C/C++ console exercises, not one integrated application; its README documents no shared product workflow. The largest sampled program, AsIveWritten.cpp, provides an archive workflow: authenticate, select a section, then display an existing text file or optionally create and display one. Other sampled files implement standalone exercises. The graph focuses on those sampled programs and that workflow; the remaining files are likewise separate exercises, but their implementations were not inspected.

Main entry points: [`AsIveWritten.cpp`](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp) (Archive program), [`ParkingMachine.cpp`](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/ParkingMachine.cpp) (Parking charges), [`EmployeeRecord.cpp`](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/EmployeeRecord.cpp) (Employee records), [`DataPegawai1Bulan.cpp`](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/DataPegawai1Bulan.cpp) (Employee sales)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_archive["Experiment archive"]
  node_archive_app["Archive program<br/>[AsIveWritten.cpp]"]
  node_auth["Credential check<br/>[AsIveWritten.cpp]"]
  node_section_menu["Section menu<br/>[AsIveWritten.cpp]"]
  node_section_files["Section text files"]
  node_create_section["Section creation<br/>[AsIveWritten.cpp]"]
  node_display_section["Section display<br/>[AsIveWritten.cpp]"]
end

subgraph group_business["Business exercises"]
  node_parking["Parking charges<br/>[ParkingMachine.cpp]"]
  node_receipt["Receipt file<br/>[ParkingMachine.cpp]"]
  node_employee_sales["Employee sales"]
  node_employee_records["Employee records<br/>[EmployeeRecord.cpp]"]
  node_record_file["Record file<br/>[EmployeeRecord.cpp]"]
end

subgraph group_math["Math exercises"]
  node_calculator["Basic calculator"]
  node_matrix_sum["Matrix sum and difference"]
  node_matrix_product["Matrix multiplication"]
  node_vector_ops["Vector operations<br/>[Vektor.cpp]"]
  node_binary_search["Exponential and binary search"]
end

subgraph group_console["Console programs"]
  node_quiz["Math quiz game<br/>[Mathquizgame.cpp]"]
  node_authentication_demo["Password input demo"]
  node_phone_sim["Phone code simulator"]
end

node_user(("Console user"))

node_user -->|"uses"| node_archive_app
node_archive_app -->|"checks credentials"| node_auth
node_archive_app -->|"requests selection"| node_section_menu
node_archive_app -->|"checks existence"| node_section_files
node_archive_app -->|"creates missing file"| node_create_section
node_create_section -->|"writes text"| node_section_files
node_archive_app -->|"displays selection"| node_display_section
node_display_section -->|"reads text"| node_section_files
node_user -->|"enters transaction"| node_parking
node_parking -->|"writes receipt"| node_receipt
node_user -->|"enters sales data"| node_employee_sales
node_user -->|"chooses record action"| node_employee_records
node_employee_records -->|"reads and writes"| node_record_file
node_user -->|"enters operands"| node_calculator
node_user -->|"enters matrices"| node_matrix_sum
node_user -->|"enters matrices"| node_matrix_product
node_user -->|"enters vectors"| node_vector_ops
node_user -->|"enters sorted values"| node_binary_search
node_user -->|"answers questions"| node_quiz
node_user -->|"enters credentials"| node_authentication_demo
node_user -->|"enters command code"| node_phone_sim

click node_archive_app "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp"
click node_auth "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp"
click node_section_menu "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp"
click node_create_section "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp"
click node_display_section "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp"
click node_parking "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/ParkingMachine.cpp"
click node_receipt "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/ParkingMachine.cpp"
click node_employee_sales "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/DataPegawai1Bulan.cpp"
click node_employee_records "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/EmployeeRecord.cpp"
click node_record_file "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/EmployeeRecord.cpp"
click node_calculator "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/SimpleCalculator.cpp"
click node_matrix_sum "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/PenjumlahanMatrix.cpp"
click node_matrix_product "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/PerkalianMatrix.cpp"
click node_vector_ops "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/Vektor.cpp"
click node_binary_search "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/Binary%26ExponentialSearch.cpp"
click node_quiz "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/Mathquizgame.cpp"
click node_authentication_demo "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/UserAuthentication.cpp"
click node_phone_sim "https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/SimpleFaizPhoneSim.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_archive_app,node_auth,node_section_menu,node_section_files,node_create_section,node_display_section,node_user toneBlue
class node_parking,node_receipt,node_employee_sales,node_employee_records,node_record_file toneAmber
class node_calculator,node_matrix_sum,node_matrix_product,node_vector_ops,node_binary_search toneMint
class node_quiz,node_authentication_demo,node_phone_sim toneRose
```

## Components

### Experiment archive

- [Archive program](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp): `AsIveWritten.cpp`
- [Credential check](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp): `AsIveWritten.cpp`
- [Section menu](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp): `AsIveWritten.cpp`
- **Section text files**
- [Section creation](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp): `AsIveWritten.cpp`
- [Section display](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/AsIveWritten.cpp): `AsIveWritten.cpp`

### Business exercises

- [Parking charges](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/ParkingMachine.cpp): `ParkingMachine.cpp`
- [Receipt file](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/ParkingMachine.cpp): `ParkingMachine.cpp`
- [Employee sales](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/DataPegawai1Bulan.cpp): `DataPegawai1Bulan.cpp`
- [Employee records](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/EmployeeRecord.cpp): `EmployeeRecord.cpp`
- [Record file](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/EmployeeRecord.cpp): `EmployeeRecord.cpp`

### Math exercises

- [Basic calculator](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/SimpleCalculator.cpp): `SimpleCalculator.cpp`
- [Matrix sum and difference](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/PenjumlahanMatrix.cpp): `PenjumlahanMatrix.cpp`
- [Matrix multiplication](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/PerkalianMatrix.cpp): `PerkalianMatrix.cpp`
- [Vector operations](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/Vektor.cpp): `Vektor.cpp`
- [Exponential and binary search](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/Binary%26ExponentialSearch.cpp): `Binary&ExponentialSearch.cpp`

### Console programs

- [Math quiz game](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/Mathquizgame.cpp): `Mathquizgame.cpp`
- [Password input demo](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/UserAuthentication.cpp): `UserAuthentication.cpp`
- [Phone code simulator](https://github.com/kelvin020207-bit/algoritma-tugas/blob/main/SimpleFaizPhoneSim.cpp): `SimpleFaizPhoneSim.cpp`

### Other components

- **Console user**

## Connections

- Console user → Archive program: uses (evidence: `AsIveWritten.cpp`)
- Archive program → Credential check: checks credentials (evidence: `AsIveWritten.cpp`)
- Archive program → Section menu: requests selection (evidence: `AsIveWritten.cpp`)
- Archive program → Section text files: checks existence (evidence: `AsIveWritten.cpp`)
- Archive program → Section creation: creates missing file (evidence: `AsIveWritten.cpp`)
- Section creation → Section text files: writes text (evidence: `AsIveWritten.cpp`)
- Archive program → Section display: displays selection (evidence: `AsIveWritten.cpp`)
- Section display → Section text files: reads text (evidence: `AsIveWritten.cpp`)
- Console user → Parking charges: enters transaction (evidence: `ParkingMachine.cpp`)
- Parking charges → Receipt file: writes receipt (evidence: `ParkingMachine.cpp`)
- Console user → Employee sales: enters sales data (evidence: `DataPegawai1Bulan.cpp`)
- Console user → Employee records: chooses record action (evidence: `EmployeeRecord.cpp`)
- Employee records → Record file: reads and writes (evidence: `EmployeeRecord.cpp`)
- Console user → Basic calculator: enters operands (evidence: `SimpleCalculator.cpp`)
- Console user → Matrix sum and difference: enters matrices (evidence: `PenjumlahanMatrix.cpp`)
- Console user → Matrix multiplication: enters matrices (evidence: `PerkalianMatrix.cpp`)
- Console user → Vector operations: enters vectors (evidence: `Vektor.cpp`)
- Console user → Exponential and binary search: enters sorted values (evidence: `Binary&ExponentialSearch.cpp`)
- Console user → Math quiz game: answers questions (evidence: `Mathquizgame.cpp`)
- Console user → Password input demo: enters credentials (evidence: `UserAuthentication.cpp`)
- Console user → Phone code simulator: enters command code (evidence: `SimpleFaizPhoneSim.cpp`)
