# riyavirajpet/week04-mini-project architecture

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

- Interactive diagram: https://gitdiagram.com/riyavirajpet/week04-mini-project
- Repository: https://github.com/riyavirajpet/week04-mini-project

## Overview

This is a small command-line temperature converter. The user chooses a conversion direction and enters an integer temperature; the program validates the input, performs the selected integer-arithmetic conversion, and prints the result or an error. Both conversion branches live in `src/main.cpp`, so they are represented as behaviors of one runtime component rather than separate modules. The source excerpt shows the program’s input, branching, calculations, and output.

Main entry points: [`src/main.cpp`](https://github.com/riyavirajpet/week04-mini-project/blob/main/src/main.cpp) (Temperature Converter)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_converter["Temperature Converter<br/>[main.cpp]"]

node_user -->|"enters choice and temperature"| node_converter
node_converter -->|"prints result or error"| node_user

click node_converter "https://github.com/riyavirajpet/week04-mini-project/blob/main/src/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_user toneBlue
class node_converter toneTeal
```

## Components

### Other components

- **User**
- [Temperature Converter](https://github.com/riyavirajpet/week04-mini-project/blob/main/src/main.cpp): `src/main.cpp`

## Connections

- User → Temperature Converter: enters choice and temperature (evidence: `src/main.cpp`)
- Temperature Converter → User: prints result or error (evidence: `src/main.cpp`)
