# srh-cramer/2362_m2 architecture

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

- Interactive diagram: https://gitdiagram.com/srh-cramer/2362_m2
- Repository: https://github.com/srh-cramer/2362_m2

## Overview

This repository is a small collection of standalone Java learning exercises, not a larger application. The clearest user-to-result workflow is GradeCalc: it reads five grades, calculates and prints their sum, average, and count of good grades, then prints each grade. The other files demonstrate array access and iteration, and basic string and numeric functions. The map reflects only behavior visible in the supplied excerpts.

Main entry points: [`src/GradeCalc.java`](https://github.com/srh-cramer/2362_m2/blob/master/src/GradeCalc.java) (Grade workflow), [`src/funktionen.java`](https://github.com/srh-cramer/2362_m2/blob/master/src/funktionen.java) (String and function examples), [`src/uebung1.java`](https://github.com/srh-cramer/2362_m2/blob/master/src/uebung1.java) (Array examples)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_grade["Grade exercise"]
  node_grade_main["Grade workflow<br/>[GradeCalc.java]"]
  node_grade_input["Grade input<br/>[GradeCalc.java]"]
  node_grade_sum["Sum calculation<br/>[GradeCalc.java]"]
  node_grade_results["Grade results<br/>[GradeCalc.java]"]
end

subgraph group_arrays["Array exercise"]
  node_array_main["Array examples<br/>[uebung1.java]"]
end

subgraph group_functions["Function exercise"]
  node_function_main["String and function examples<br/>[funktionen.java]"]
  node_adult_check["Adult check<br/>[funktionen.java]"]
  node_addition["Addition<br/>[funktionen.java]"]
  node_percentage["Percentage calculation<br/>[funktionen.java]"]
end

node_user(("Console user"))

node_user -->|"runs"| node_grade_main
node_grade_main -->|"reads grades"| node_grade_input
node_grade_main -->|"calls"| node_grade_sum
node_grade_sum -->|"returns sum"| node_grade_main
node_grade_main -->|"prints results"| node_grade_results
node_user -->|"runs"| node_array_main
node_user -->|"runs"| node_function_main
node_function_main -->|"calls"| node_adult_check
node_function_main -->|"calls"| node_addition
node_function_main -->|"calls"| node_percentage

click node_grade_main "https://github.com/srh-cramer/2362_m2/blob/master/src/GradeCalc.java"
click node_grade_input "https://github.com/srh-cramer/2362_m2/blob/master/src/GradeCalc.java"
click node_grade_sum "https://github.com/srh-cramer/2362_m2/blob/master/src/GradeCalc.java"
click node_grade_results "https://github.com/srh-cramer/2362_m2/blob/master/src/GradeCalc.java"
click node_array_main "https://github.com/srh-cramer/2362_m2/blob/master/src/uebung1.java"
click node_function_main "https://github.com/srh-cramer/2362_m2/blob/master/src/funktionen.java"
click node_adult_check "https://github.com/srh-cramer/2362_m2/blob/master/src/funktionen.java"
click node_addition "https://github.com/srh-cramer/2362_m2/blob/master/src/funktionen.java"
click node_percentage "https://github.com/srh-cramer/2362_m2/blob/master/src/funktionen.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_grade_main,node_grade_input,node_grade_sum,node_grade_results,node_user toneBlue
class node_array_main toneAmber
class node_function_main,node_adult_check,node_addition,node_percentage toneMint
```

## Components

### Grade exercise

- [Grade workflow](https://github.com/srh-cramer/2362_m2/blob/master/src/GradeCalc.java): `src/GradeCalc.java`
- [Grade input](https://github.com/srh-cramer/2362_m2/blob/master/src/GradeCalc.java): `src/GradeCalc.java`
- [Sum calculation](https://github.com/srh-cramer/2362_m2/blob/master/src/GradeCalc.java): `src/GradeCalc.java`
- [Grade results](https://github.com/srh-cramer/2362_m2/blob/master/src/GradeCalc.java): `src/GradeCalc.java`

### Array exercise

- [Array examples](https://github.com/srh-cramer/2362_m2/blob/master/src/uebung1.java): `src/uebung1.java`

### Function exercise

- [String and function examples](https://github.com/srh-cramer/2362_m2/blob/master/src/funktionen.java): `src/funktionen.java`
- [Adult check](https://github.com/srh-cramer/2362_m2/blob/master/src/funktionen.java): `src/funktionen.java`
- [Addition](https://github.com/srh-cramer/2362_m2/blob/master/src/funktionen.java): `src/funktionen.java`
- [Percentage calculation](https://github.com/srh-cramer/2362_m2/blob/master/src/funktionen.java): `src/funktionen.java`

### Other components

- **Console user**

## Connections

- Console user → Grade workflow: runs (evidence: `src/GradeCalc.java`)
- Grade workflow → Grade input: reads grades (evidence: `src/GradeCalc.java`)
- Grade workflow → Sum calculation: calls (evidence: `src/GradeCalc.java`)
- Sum calculation → Grade workflow: returns sum (evidence: `src/GradeCalc.java`)
- Grade workflow → Grade results: prints results (evidence: `src/GradeCalc.java`)
- Console user → Array examples: runs (evidence: `src/uebung1.java`)
- Console user → String and function examples: runs (evidence: `src/funktionen.java`)
- String and function examples → Adult check: calls (evidence: `src/funktionen.java`)
- String and function examples → Addition: calls (evidence: `src/funktionen.java`)
- String and function examples → Percentage calculation: calls (evidence: `src/funktionen.java`)
