# kushal1477/2nd-sem-project architecture

> Architecture diagram of the GitHub repository kushal1477/2nd-sem-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kushal1477/2nd-sem-project
- Repository: https://github.com/kushal1477/2nd-sem-project

## Overview

This is a single-file, console-based parking-lot management application. Its principal workflow authenticates an operator, then manages vehicle parking and payment against an in-memory lot. The excerpts also show vehicle-number validation, activity logging, slot displays, and password changes. All components point to the sole source file; the excerpts are incomplete, so relationships not directly visible there are omitted.

Main entry points: [`SemIIProj.cpp`](https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp) (Console application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Operator access"]
  node_application["Console application<br/>[SemIIProj.cpp]"]
  node_authentication["Authentication<br/>[SemIIProj.cpp]"]
end

subgraph group_parking["Parking operations"]
  node_lot["Parking lot<br/>[SemIIProj.cpp]"]
  node_vehicle_entry["Vehicle entry<br/>[SemIIProj.cpp]"]
  node_vehicle_exit["Vehicle exit and payment<br/>[SemIIProj.cpp]"]
end

subgraph group_support["Supporting capabilities"]
  node_vehicle_validation["Registration validation<br/>[SemIIProj.cpp]"]
  node_slot_display["Slot display<br/>[SemIIProj.cpp]"]
  node_activity_log["Activity logging<br/>[SemIIProj.cpp]"]
  node_password_change["Password change<br/>[SemIIProj.cpp]"]
end

node_operator(("Operator"))
node_log_file["Log file"]

node_operator -->|"uses"| node_application
node_application -->|"authenticates"| node_authentication
node_application -->|"creates"| node_lot
node_lot -->|"writes"| node_activity_log
node_activity_log -->|"appends"| node_log_file

click node_application "https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp"
click node_authentication "https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp"
click node_lot "https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp"
click node_vehicle_entry "https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp"
click node_vehicle_exit "https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp"
click node_vehicle_validation "https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp"
click node_slot_display "https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp"
click node_activity_log "https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp"
click node_password_change "https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp"

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_application,node_authentication toneBlue
class node_lot,node_vehicle_entry,node_vehicle_exit toneAmber
class node_vehicle_validation,node_slot_display,node_activity_log,node_password_change toneMint
class node_operator,node_log_file toneIndigo
```

## Components

### Operator access

- [Console application](https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp): `SemIIProj.cpp`
- [Authentication](https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp): `SemIIProj.cpp`

### Parking operations

- [Parking lot](https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp): `SemIIProj.cpp`
- [Vehicle entry](https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp): `SemIIProj.cpp`
- [Vehicle exit and payment](https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp): `SemIIProj.cpp`

### Supporting capabilities

- [Registration validation](https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp): `SemIIProj.cpp`
- [Slot display](https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp): `SemIIProj.cpp`
- [Activity logging](https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp): `SemIIProj.cpp`
- [Password change](https://github.com/kushal1477/2nd-sem-project/blob/main/SemIIProj.cpp): `SemIIProj.cpp`

### Other components

- **Operator**
- **Log file**

## Connections

- Operator → Console application: uses
- Console application → Authentication: authenticates (evidence: `SemIIProj.cpp`)
- Console application → Parking lot: creates (evidence: `SemIIProj.cpp`)
- Parking lot → Activity logging: writes (evidence: `SemIIProj.cpp`)
- Activity logging → Log file: appends (evidence: `SemIIProj.cpp`)
