# celsoprof/comissoes_02-2025-ds1m architecture

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

- Interactive diagram: https://gitdiagram.com/celsoprof/comissoes_02-2025-ds1m
- Repository: https://github.com/celsoprof/comissoes_02-2025-ds1m

## Overview

This is a small Java console commission calculator. The user enters a salesperson’s name and sales total; the application delegates the interaction to Vendedor, which selects a 5% or 10% commission based on the sales threshold, calculates the amount, and prints the results. The calculation and display are methods within the same source file, shown separately to make the workflow clear. The repository contains no documented storage or external integrations.

Main entry points: [`src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java`](https://github.com/celsoprof/comissoes_02-2025-ds1m/blob/main/src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java) (Seller interaction), [`src/br/senai/sp/jandira/ds1m/comissoes/ComissoesApp.java`](https://github.com/celsoprof/comissoes_02-2025-ds1m/blob/main/src/br/senai/sp/jandira/ds1m/comissoes/ComissoesApp.java) (Application entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_app["Application entry<br/>[ComissoesApp.java]"]
node_seller["Seller interaction<br/>[Vendedor.java]"]
node_commission["Commission calculation<br/>[Vendedor.java]"]
node_results["Results display<br/>[Vendedor.java]"]

node_app -->|"invokes"| node_seller
node_user -->|"enters sales data"| node_seller
node_seller -->|"calls"| node_commission
node_commission -->|"calls"| node_results
node_results -->|"prints results"| node_user

click node_app "https://github.com/celsoprof/comissoes_02-2025-ds1m/blob/main/src/br/senai/sp/jandira/ds1m/comissoes/ComissoesApp.java"
click node_seller "https://github.com/celsoprof/comissoes_02-2025-ds1m/blob/main/src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java"
click node_commission "https://github.com/celsoprof/comissoes_02-2025-ds1m/blob/main/src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java"
click node_results "https://github.com/celsoprof/comissoes_02-2025-ds1m/blob/main/src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java"

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_app,node_seller,node_commission,node_results toneTeal
```

## Components

### Other components

- **User**
- [Application entry](https://github.com/celsoprof/comissoes_02-2025-ds1m/blob/main/src/br/senai/sp/jandira/ds1m/comissoes/ComissoesApp.java): `src/br/senai/sp/jandira/ds1m/comissoes/ComissoesApp.java`
- [Seller interaction](https://github.com/celsoprof/comissoes_02-2025-ds1m/blob/main/src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java): `src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java`
- [Commission calculation](https://github.com/celsoprof/comissoes_02-2025-ds1m/blob/main/src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java): `src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java`
- [Results display](https://github.com/celsoprof/comissoes_02-2025-ds1m/blob/main/src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java): `src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java`

## Connections

- Application entry → Seller interaction: invokes (evidence: `src/br/senai/sp/jandira/ds1m/comissoes/ComissoesApp.java`)
- User → Seller interaction: enters sales data (evidence: `src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java`)
- Seller interaction → Commission calculation: calls (evidence: `src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java`)
- Commission calculation → Results display: calls (evidence: `src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java`)
- Results display → User: prints results (evidence: `src/br/senai/sp/jandira/ds1m/comissoes/model/Vendedor.java`)
