# piyushambaliya/.net-lab architecture

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

- Interactive diagram: https://gitdiagram.com/piyushambaliya/.net-lab
- Repository: https://github.com/piyushambaliya/.net-lab

## Overview

This repository is a collection of small .NET console exercises, not one integrated application. The sampled programs cover payroll calculation, student admission, and in-memory expense tracking; each takes input in a console workflow and displays results there. The expense tracker additionally supports adding, listing, and totaling expenses. The README provides no further product description, and the ZIP archives were not inspected, so their contents and relationships are not represented. The graph reflects only relationships visible in the sampled source.

Main entry points: [`Program.cs`](https://github.com/piyushambaliya/.net-lab/blob/main/Program.cs) (Payroll Workflow), [`Practical1_StudentAdmission/Program.cs`](https://github.com/piyushambaliya/.net-lab/blob/main/Practical1_StudentAdmission/Program.cs) (Admission Workflow), [`practical3.cs`](https://github.com/piyushambaliya/.net-lab/blob/main/practical3.cs) (Expense Actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_payroll["Payroll Exercise"]
  node_payroll_program["Payroll Workflow<br/>[Program.cs]"]
  node_employee["Employee Payroll<br/>[Program.cs]"]
end

subgraph group_admission["Admission Exercise"]
  node_admission_program["Admission Workflow<br/>[Program.cs]"]
  node_student["Student Admission<br/>[Program.cs]"]
end

subgraph group_expenses["Expense Tracker"]
  node_expense_program["Expense Menu<br/>[practical3.cs]"]
  node_expense_actions["Expense Actions<br/>[practical3.cs]"]
  node_expense_record["Expense Record<br/>[practical3.cs]"]
end

node_console_user(("Console User"))

node_console_user -->|"enters data"| node_payroll_program
node_payroll_program -->|"creates and displays"| node_employee
node_employee -->|"calculates salary"| node_employee
node_payroll_program -->|"prints results"| node_console_user
node_console_user -->|"enters data"| node_admission_program
node_admission_program -->|"creates and displays"| node_student
node_admission_program -->|"prints details"| node_console_user
node_console_user -->|"selects actions"| node_expense_program
node_expense_program -->|"dispatches actions"| node_expense_actions
node_expense_actions -->|"creates and stores"| node_expense_record
node_expense_actions -->|"prints expense data"| node_console_user

click node_payroll_program "https://github.com/piyushambaliya/.net-lab/blob/main/Program.cs"
click node_employee "https://github.com/piyushambaliya/.net-lab/blob/main/Program.cs"
click node_admission_program "https://github.com/piyushambaliya/.net-lab/blob/main/Practical1_StudentAdmission/Program.cs"
click node_student "https://github.com/piyushambaliya/.net-lab/blob/main/Practical1_StudentAdmission/Program.cs"
click node_expense_program "https://github.com/piyushambaliya/.net-lab/blob/main/practical3.cs"
click node_expense_actions "https://github.com/piyushambaliya/.net-lab/blob/main/practical3.cs"
click node_expense_record "https://github.com/piyushambaliya/.net-lab/blob/main/practical3.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_payroll_program,node_employee,node_console_user toneBlue
class node_admission_program,node_student toneAmber
class node_expense_program,node_expense_actions,node_expense_record toneMint
```

## Components

### Payroll Exercise

- [Payroll Workflow](https://github.com/piyushambaliya/.net-lab/blob/main/Program.cs): `Program.cs`
- [Employee Payroll](https://github.com/piyushambaliya/.net-lab/blob/main/Program.cs): `Program.cs`

### Admission Exercise

- [Admission Workflow](https://github.com/piyushambaliya/.net-lab/blob/main/Practical1_StudentAdmission/Program.cs): `Practical1_StudentAdmission/Program.cs`
- [Student Admission](https://github.com/piyushambaliya/.net-lab/blob/main/Practical1_StudentAdmission/Program.cs): `Practical1_StudentAdmission/Program.cs`

### Expense Tracker

- [Expense Menu](https://github.com/piyushambaliya/.net-lab/blob/main/practical3.cs): `practical3.cs`
- [Expense Actions](https://github.com/piyushambaliya/.net-lab/blob/main/practical3.cs): `practical3.cs`
- [Expense Record](https://github.com/piyushambaliya/.net-lab/blob/main/practical3.cs): `practical3.cs`

### Other components

- **Console User**

## Connections

- Console User → Payroll Workflow: enters data (evidence: `Program.cs`)
- Payroll Workflow → Employee Payroll: creates and displays (evidence: `Program.cs`)
- Employee Payroll → Employee Payroll: calculates salary (evidence: `Program.cs`)
- Payroll Workflow → Console User: prints results (evidence: `Program.cs`)
- Console User → Admission Workflow: enters data (evidence: `Practical1_StudentAdmission/Program.cs`)
- Admission Workflow → Student Admission: creates and displays (evidence: `Practical1_StudentAdmission/Program.cs`)
- Admission Workflow → Console User: prints details (evidence: `Practical1_StudentAdmission/Program.cs`)
- Console User → Expense Menu: selects actions (evidence: `practical3.cs`)
- Expense Menu → Expense Actions: dispatches actions (evidence: `practical3.cs`)
- Expense Actions → Expense Record: creates and stores (evidence: `practical3.cs`)
- Expense Actions → Console User: prints expense data (evidence: `practical3.cs`)
