# abeerscode/csharp-practice-code architecture

> Architecture diagram of the GitHub repository abeerscode/csharp-practice-code, 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/abeerscode/csharp-practice-code
- Repository: https://github.com/abeerscode/csharp-practice-code

## Overview

This repository is a set of ten independent C# console exercises, not one integrated application. Each project runs its own Main method and demonstrates a small topic, from printing and arithmetic to conditionals, exceptions, classes, constructors, and inheritance. The typical workflow is to start one project, enter requested values where applicable, and read its console output. The README documents how to create and run a console project; sampled source confirms the individual exercise behavior. These projects have no shared runtime workflow or persistent state.

Main entry points: [`program1/Program.cs`](https://github.com/abeerscode/csharp-practice-code/blob/main/program1/Program.cs) (Hello World), [`program2/Program.cs`](https://github.com/abeerscode/csharp-practice-code/blob/main/program2/Program.cs) (Add Numbers), [`program3/Program.cs`](https://github.com/abeerscode/csharp-practice-code/blob/main/program3/Program.cs) (Result Checker), [`program4/Program.cs`](https://github.com/abeerscode/csharp-practice-code/blob/main/program4/Program.cs) (Math Menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_console["Console"]
node_p1["Hello World<br/>[Program.cs]"]
node_p2["Add Numbers<br/>[Program.cs]"]
node_p3["Result Checker<br/>[Program.cs]"]
node_p4["Math Menu<br/>[Program.cs]"]
node_p5["Exception Handling<br/>[Program.cs]"]
node_p6["Fibonacci Series<br/>[Program.cs]"]
node_p7["Car Objects<br/>[Program.cs]"]
node_p8["Car Constructors<br/>[Program.cs]"]
node_p9["Employee Inheritance<br/>[Program.cs]"]
node_p10["Base Inheritance<br/>[Program.cs]"]

node_user -->|"runs"| node_p1
node_user -->|"runs"| node_p2
node_user -->|"runs"| node_p3
node_user -->|"runs"| node_p4
node_user -->|"runs"| node_p5
node_user -->|"runs"| node_p6
node_user -->|"runs"| node_p7
node_user -->|"runs"| node_p8
node_user -->|"runs"| node_p9
node_user -->|"runs"| node_p10
node_p1 -->|"prints greeting"| node_console
node_p2 -->|"reads and prints"| node_console
node_p3 -->|"reads and prints"| node_console
node_p4 -->|"reads and prints"| node_console
node_p5 -->|"reads and prints"| node_console
node_p6 -->|"prints series"| node_console
node_p7 -->|"prints car"| node_console
node_p8 -->|"prints car"| node_console
node_p9 -->|"prints employee info"| node_console
node_p10 -->|"prints employee info"| node_console

click node_p1 "https://github.com/abeerscode/csharp-practice-code/blob/main/program1/Program.cs"
click node_p2 "https://github.com/abeerscode/csharp-practice-code/blob/main/program2/Program.cs"
click node_p3 "https://github.com/abeerscode/csharp-practice-code/blob/main/program3/Program.cs"
click node_p4 "https://github.com/abeerscode/csharp-practice-code/blob/main/program4/Program.cs"
click node_p5 "https://github.com/abeerscode/csharp-practice-code/blob/main/program5/Program.cs"
click node_p6 "https://github.com/abeerscode/csharp-practice-code/blob/main/program6/Program.cs"
click node_p7 "https://github.com/abeerscode/csharp-practice-code/blob/main/program7/Program.cs"
click node_p8 "https://github.com/abeerscode/csharp-practice-code/blob/main/program8/Program.cs"
click node_p9 "https://github.com/abeerscode/csharp-practice-code/blob/main/program9/Program.cs"
click node_p10 "https://github.com/abeerscode/csharp-practice-code/blob/main/program10/Program.cs"

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_console toneIndigo
class node_p1,node_p2,node_p3,node_p4,node_p5,node_p6,node_p7,node_p8,node_p9,node_p10 toneTeal
```

## Components

### Other components

- **User**
- **Console**
- [Hello World](https://github.com/abeerscode/csharp-practice-code/blob/main/program1/Program.cs): `program1/Program.cs`
- [Add Numbers](https://github.com/abeerscode/csharp-practice-code/blob/main/program2/Program.cs): `program2/Program.cs`
- [Result Checker](https://github.com/abeerscode/csharp-practice-code/blob/main/program3/Program.cs): `program3/Program.cs`
- [Math Menu](https://github.com/abeerscode/csharp-practice-code/blob/main/program4/Program.cs): `program4/Program.cs`
- [Exception Handling](https://github.com/abeerscode/csharp-practice-code/blob/main/program5/Program.cs): `program5/Program.cs`
- [Fibonacci Series](https://github.com/abeerscode/csharp-practice-code/blob/main/program6/Program.cs): `program6/Program.cs`
- [Car Objects](https://github.com/abeerscode/csharp-practice-code/blob/main/program7/Program.cs): `program7/Program.cs`
- [Car Constructors](https://github.com/abeerscode/csharp-practice-code/blob/main/program8/Program.cs): `program8/Program.cs`
- [Employee Inheritance](https://github.com/abeerscode/csharp-practice-code/blob/main/program9/Program.cs): `program9/Program.cs`
- [Base Inheritance](https://github.com/abeerscode/csharp-practice-code/blob/main/program10/Program.cs): `program10/Program.cs`

## Connections

- User → Hello World: runs (evidence: `readme.md`)
- User → Add Numbers: runs (evidence: `readme.md`)
- User → Result Checker: runs (evidence: `readme.md`)
- User → Math Menu: runs (evidence: `readme.md`)
- User → Exception Handling: runs (evidence: `readme.md`)
- User → Fibonacci Series: runs (evidence: `readme.md`)
- User → Car Objects: runs (evidence: `readme.md`)
- User → Car Constructors: runs (evidence: `readme.md`)
- User → Employee Inheritance: runs (evidence: `readme.md`)
- User → Base Inheritance: runs (evidence: `readme.md`)
- Hello World → Console: prints greeting (evidence: `program1/Program.cs`)
- Add Numbers → Console: reads and prints (evidence: `program2/Program.cs`)
- Result Checker → Console: reads and prints (evidence: `program3/Program.cs`)
- Math Menu → Console: reads and prints (evidence: `program4/Program.cs`)
- Exception Handling → Console: reads and prints (evidence: `program5/Program.cs`)
- Fibonacci Series → Console: prints series (evidence: `program6/Program.cs`)
- Car Objects → Console: prints car (evidence: `program7/Program.cs`)
- Car Constructors → Console: prints car (evidence: `program8/Program.cs`)
- Employee Inheritance → Console: prints employee info (evidence: `program9/Program.cs`)
- Base Inheritance → Console: prints employee info (evidence: `program10/Program.cs`)
