# jgg05/26itdrift-programmering architecture

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

- Interactive diagram: https://gitdiagram.com/jgg05/26itdrift-programmering
- Repository: https://github.com/jgg05/26itdrift-programmering

## Overview

This repository is a collection of introductory programming exercises, not a single integrated application. The clearest end-to-end workflow is the tax calculator: a user enters gross annual salary, the program obtains a rate from the threshold helper, calculates tax and net pay, and prints results until the user exits. The tree also shows exercises on lists, menus, loops, conditionals, and small calculators. Those branches are represented as exercise areas because their source was not sampled; their internal behavior and connections are therefore unknown.

Main entry points: [`PROG - Oppgave 9/Skattekalkulator.py`](https://github.com/jgg05/26itdrift-programmering/blob/main/PROG%20-%20Oppgave%209/Skattekalkulator.py) (Tax calculator), [`PROG - Oppgave 9/Grenser_for_Skatteprosenter.py`](https://github.com/jgg05/26itdrift-programmering/blob/main/PROG%20-%20Oppgave%209/Grenser_for_Skatteprosenter.py) (Tax thresholds)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_modules["Module exercises"]
  node_mod2["Module 2 tasks"]
  node_mod3["Module 3 tasks"]
  node_mod3proj["Module 3 projects"]
end

subgraph group_projects["Programming projects"]
  node_taxcalc["Tax calculator"]
  node_taxrates["Tax thresholds"]
  node_vat["VAT calculator"]
  node_circle["Circle calculator"]
end

subgraph group_weekly["Weekly exercises"]
  node_lists["List exercises"]
  node_menu["Menu exercises"]
  node_receipt["Receipt exercise"]
  node_discount["Discount and VAT"]
end

subgraph group_revision["Revision exercises"]
  node_interest["Interest exercise<br/>[PROG Øvelse1.py]"]
  node_snake["Snake exercise<br/>[PROG Snake.py]"]
  node_debug["Debug exercises"]
  node_repeat["Other revision tasks"]
end

node_user(("User"))

node_user -->|"enters salary"| node_taxcalc
node_taxcalc -->|"gets rate"| node_taxrates

click node_taxcalc "https://github.com/jgg05/26itdrift-programmering/blob/main/PROG%20-%20Oppgave%209/Skattekalkulator.py"
click node_taxrates "https://github.com/jgg05/26itdrift-programmering/blob/main/PROG%20-%20Oppgave%209/Grenser_for_Skatteprosenter.py"
click node_vat "https://github.com/jgg05/26itdrift-programmering/blob/main/PROG%20-%20Oppgave%204/PrisberegnerMva"
click node_circle "https://github.com/jgg05/26itdrift-programmering/blob/main/PROG%20-%20Oppgave%204/SirkelKalkulator"
click node_mod2 "https://github.com/jgg05/26itdrift-programmering/tree/main/PE1-Modul2-Oppgaver"
click node_mod3 "https://github.com/jgg05/26itdrift-programmering/tree/main/PE1-Modul3-Oppgaver"
click node_mod3proj "https://github.com/jgg05/26itdrift-programmering/tree/main/PE1-Modul3-Oppgaver/PROG%20-%20Oppgave%206"
click node_lists "https://github.com/jgg05/26itdrift-programmering/tree/main/Uke-39%20TavleOppgaver"
click node_menu "https://github.com/jgg05/26itdrift-programmering/blob/main/Uke-40%20TavleOppgaver/Oppgave%201%20-%20Meny"
click node_receipt "https://github.com/jgg05/26itdrift-programmering/blob/main/Uke-40%20TavleOppgaver/Oppgave%202%20-%20Kvittering"
click node_discount "https://github.com/jgg05/26itdrift-programmering/blob/main/Uke-40%20TavleOppgaver/Oppgave%203%20-%20Rabatt%20og%20Moms%20kalkulator"
click node_interest "https://github.com/jgg05/26itdrift-programmering/blob/main/%C3%98velseRepetisjon/PROG%20%C3%98velse1.py"
click node_snake "https://github.com/jgg05/26itdrift-programmering/blob/main/%C3%98velseRepetisjon/PROG%20Snake.py"
click node_debug "https://github.com/jgg05/26itdrift-programmering/tree/main/%C3%98velseRepetisjon/DebugOppgaver"
click node_repeat "https://github.com/jgg05/26itdrift-programmering/tree/main/%C3%98velseRepetisjon"

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_mod2,node_mod3,node_mod3proj,node_user toneBlue
class node_taxcalc,node_taxrates,node_vat,node_circle toneAmber
class node_lists,node_menu,node_receipt,node_discount toneMint
class node_interest,node_snake,node_debug,node_repeat toneRose
```

## Components

### Module exercises

- [Module 2 tasks](https://github.com/jgg05/26itdrift-programmering/tree/main/PE1-Modul2-Oppgaver): `PE1-Modul2-Oppgaver`
- [Module 3 tasks](https://github.com/jgg05/26itdrift-programmering/tree/main/PE1-Modul3-Oppgaver): `PE1-Modul3-Oppgaver`
- [Module 3 projects](https://github.com/jgg05/26itdrift-programmering/tree/main/PE1-Modul3-Oppgaver/PROG%20-%20Oppgave%206): `PE1-Modul3-Oppgaver/PROG - Oppgave 6`

### Programming projects

- [Tax calculator](https://github.com/jgg05/26itdrift-programmering/blob/main/PROG%20-%20Oppgave%209/Skattekalkulator.py): `PROG - Oppgave 9/Skattekalkulator.py`
- [Tax thresholds](https://github.com/jgg05/26itdrift-programmering/blob/main/PROG%20-%20Oppgave%209/Grenser_for_Skatteprosenter.py): `PROG - Oppgave 9/Grenser_for_Skatteprosenter.py`
- [VAT calculator](https://github.com/jgg05/26itdrift-programmering/blob/main/PROG%20-%20Oppgave%204/PrisberegnerMva): `PROG - Oppgave 4/PrisberegnerMva`
- [Circle calculator](https://github.com/jgg05/26itdrift-programmering/blob/main/PROG%20-%20Oppgave%204/SirkelKalkulator): `PROG - Oppgave 4/SirkelKalkulator`

### Weekly exercises

- [List exercises](https://github.com/jgg05/26itdrift-programmering/tree/main/Uke-39%20TavleOppgaver): `Uke-39 TavleOppgaver`
- [Menu exercises](https://github.com/jgg05/26itdrift-programmering/blob/main/Uke-40%20TavleOppgaver/Oppgave%201%20-%20Meny): `Uke-40 TavleOppgaver/Oppgave 1 - Meny`
- [Receipt exercise](https://github.com/jgg05/26itdrift-programmering/blob/main/Uke-40%20TavleOppgaver/Oppgave%202%20-%20Kvittering): `Uke-40 TavleOppgaver/Oppgave 2 - Kvittering`
- [Discount and VAT](https://github.com/jgg05/26itdrift-programmering/blob/main/Uke-40%20TavleOppgaver/Oppgave%203%20-%20Rabatt%20og%20Moms%20kalkulator): `Uke-40 TavleOppgaver/Oppgave 3 - Rabatt og Moms kalkulator`

### Revision exercises

- [Interest exercise](https://github.com/jgg05/26itdrift-programmering/blob/main/%C3%98velseRepetisjon/PROG%20%C3%98velse1.py): `ØvelseRepetisjon/PROG Øvelse1.py`
- [Snake exercise](https://github.com/jgg05/26itdrift-programmering/blob/main/%C3%98velseRepetisjon/PROG%20Snake.py): `ØvelseRepetisjon/PROG Snake.py`
- [Debug exercises](https://github.com/jgg05/26itdrift-programmering/tree/main/%C3%98velseRepetisjon/DebugOppgaver): `ØvelseRepetisjon/DebugOppgaver`
- [Other revision tasks](https://github.com/jgg05/26itdrift-programmering/tree/main/%C3%98velseRepetisjon): `ØvelseRepetisjon`

### Other components

- **User**

## Connections

- User → Tax calculator: enters salary (evidence: `PROG - Oppgave 9/Skattekalkulator.py`)
- Tax calculator → Tax thresholds: gets rate (evidence: `PROG - Oppgave 9/Skattekalkulator.py`)
