# kabera192/hw1-template architecture

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

- Interactive diagram: https://gitdiagram.com/kabera192/hw1-template
- Repository: https://github.com/kabera192/hw1-template

## Overview

This repository is a C loan-amortization assignment. The documented workflow is user input, payment validation, month-by-month interest and principal calculation, and schedule output. The only source file is a TODO scaffold, so these are intended responsibilities, not implemented components; relationships below are documented in the README.

Main entry points: [`hw1.c`](https://github.com/kabera192/hw1-template/blob/main/hw1.c) (Calculator)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_borrower(("Borrower"))
node_calculator["Calculator<br/>[hw1.c]"]
node_payment_check["Payment Check<br/>[hw1.c]"]
node_monthly_calculation["Monthly Calculation<br/>[hw1.c]"]
node_schedule["Amortization Schedule<br/>[hw1.c]"]

node_borrower -->|"provides inputs"| node_calculator
node_calculator -->|"validates payment"| node_payment_check
node_calculator -->|"calculates months"| node_monthly_calculation
node_monthly_calculation -->|"outputs breakdown"| node_schedule

click node_calculator "https://github.com/kabera192/hw1-template/blob/main/hw1.c"
click node_payment_check "https://github.com/kabera192/hw1-template/blob/main/hw1.c"
click node_monthly_calculation "https://github.com/kabera192/hw1-template/blob/main/hw1.c"
click node_schedule "https://github.com/kabera192/hw1-template/blob/main/hw1.c"

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_borrower toneIndigo
class node_calculator,node_payment_check,node_monthly_calculation,node_schedule toneTeal
```

## Components

### Other components

- **Borrower**
- [Calculator](https://github.com/kabera192/hw1-template/blob/main/hw1.c): `hw1.c`
- [Payment Check](https://github.com/kabera192/hw1-template/blob/main/hw1.c): `hw1.c`
- [Monthly Calculation](https://github.com/kabera192/hw1-template/blob/main/hw1.c): `hw1.c`
- [Amortization Schedule](https://github.com/kabera192/hw1-template/blob/main/hw1.c): `hw1.c`

## Connections

- Borrower → Calculator: provides inputs (evidence: `README.md`)
- Calculator → Payment Check: validates payment (evidence: `README.md`)
- Calculator → Monthly Calculation: calculates months (evidence: `README.md`)
- Monthly Calculation → Amortization Schedule: outputs breakdown (evidence: `README.md`)
