# yogasreenachireddy-byte/calculator architecture

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

- Interactive diagram: https://gitdiagram.com/yogasreenachireddy-byte/calculator
- Repository: https://github.com/yogasreenachireddy-byte/calculator

## Overview

This is a minimal calculator repository. Its only demonstrated workflow is interactive addition: a user supplies two values, `add.py` converts them to floats, calculates their sum, and prints it. `sub.py` and `division.py` contain only `temp`, so the supplied source does not show working subtraction or division workflows. The graph reflects only the behavior visible in the excerpts.

Main entry points: [`add.py`](https://github.com/yogasreenachireddy-byte/calculator/blob/main/add.py) (Addition script)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_addition["Addition script<br/>[add.py]"]
node_subtraction["Subtraction script<br/>[sub.py]"]
node_division["Division script<br/>[division.py]"]

node_user -->|"enters values"| node_addition
node_addition -->|"prints sum"| node_user

click node_addition "https://github.com/yogasreenachireddy-byte/calculator/blob/main/add.py"
click node_subtraction "https://github.com/yogasreenachireddy-byte/calculator/blob/main/sub.py"
click node_division "https://github.com/yogasreenachireddy-byte/calculator/blob/main/division.py"

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_user toneBlue
class node_addition,node_subtraction,node_division toneTeal
```

## Components

### Other components

- **User**
- [Addition script](https://github.com/yogasreenachireddy-byte/calculator/blob/main/add.py): `add.py`
- [Subtraction script](https://github.com/yogasreenachireddy-byte/calculator/blob/main/sub.py): `sub.py`
- [Division script](https://github.com/yogasreenachireddy-byte/calculator/blob/main/division.py): `division.py`

## Connections

- User → Addition script: enters values (evidence: `add.py`)
- Addition script → User: prints sum (evidence: `add.py`)
