# malcommathela/number_system_toolkit architecture

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

- Interactive diagram: https://gitdiagram.com/malcommathela/number_system_toolkit
- Repository: https://github.com/malcommathela/number_system_toolkit

## Overview

Number System Toolkit is a small menu-driven console program. The user enters a menu choice and operation input; the main loop dispatches to decimal/binary conversion, prime checking, or palindrome checking, then prints the result and repeats until exit. These responsibilities are all implemented in main.cpp, so the graph keeps the architecture compact. The README describes input validation, but the sampled implementation reads input directly and shows no validation; that capability is therefore not represented as implemented.

Main entry points: [`main.cpp`](https://github.com/malcommathela/number_system_toolkit/blob/master/main.cpp) (Menu and dispatch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Console interaction"]
  node_menu["Menu and dispatch<br/>[main.cpp]"]
end

subgraph group_operations["Number operations"]
  node_decimal_binary["Decimal to binary<br/>[main.cpp]"]
  node_binary_decimal["Binary to decimal<br/>[main.cpp]"]
  node_prime["Prime check<br/>[main.cpp]"]
  node_palindrome["Palindrome check<br/>[main.cpp]"]
end

node_user(("Console user"))

node_user -->|"enters choices"| node_menu
node_menu -->|"calls conversion"| node_decimal_binary
node_menu -->|"calls conversion"| node_binary_decimal
node_menu -->|"calls check"| node_prime
node_menu -->|"calls check"| node_palindrome
node_menu -->|"prints results"| node_user

click node_menu "https://github.com/malcommathela/number_system_toolkit/blob/master/main.cpp"
click node_decimal_binary "https://github.com/malcommathela/number_system_toolkit/blob/master/main.cpp"
click node_binary_decimal "https://github.com/malcommathela/number_system_toolkit/blob/master/main.cpp"
click node_prime "https://github.com/malcommathela/number_system_toolkit/blob/master/main.cpp"
click node_palindrome "https://github.com/malcommathela/number_system_toolkit/blob/master/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_menu,node_user toneBlue
class node_decimal_binary,node_binary_decimal,node_prime,node_palindrome toneAmber
```

## Components

### Console interaction

- [Menu and dispatch](https://github.com/malcommathela/number_system_toolkit/blob/master/main.cpp): `main.cpp`

### Number operations

- [Decimal to binary](https://github.com/malcommathela/number_system_toolkit/blob/master/main.cpp): `main.cpp`
- [Binary to decimal](https://github.com/malcommathela/number_system_toolkit/blob/master/main.cpp): `main.cpp`
- [Prime check](https://github.com/malcommathela/number_system_toolkit/blob/master/main.cpp): `main.cpp`
- [Palindrome check](https://github.com/malcommathela/number_system_toolkit/blob/master/main.cpp): `main.cpp`

### Other components

- **Console user**

## Connections

- Console user → Menu and dispatch: enters choices (evidence: `main.cpp`)
- Menu and dispatch → Decimal to binary: calls conversion (evidence: `main.cpp`)
- Menu and dispatch → Binary to decimal: calls conversion (evidence: `main.cpp`)
- Menu and dispatch → Prime check: calls check (evidence: `main.cpp`)
- Menu and dispatch → Palindrome check: calls check (evidence: `main.cpp`)
- Menu and dispatch → Console user: prints results (evidence: `main.cpp`)
