# shivam20060820/oops architecture

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

- Interactive diagram: https://gitdiagram.com/shivam20060820/oops
- Repository: https://github.com/shivam20060820/oops

## Overview

#### Purpose
Small C++ repository containing object-oriented programming assignments. There is no shared application framework, build system, service integration, or runtime infrastructure indicated.

#### Entry Points
Each `.cpp` file is likely an independent console-program entry point compiled and run separately:
- `assigment_4.cpp`
- `assignment_4_output.cpp`
- `assignment_5.cpp`

The repository-level description is in `README.md`.

#### Assignment 4 Implementation
`assigment_4.cpp` appears to be the primary Assignment 4 source. Its architecture should be treated as self-contained: class definitions, program control flow, and console I/O are expected to reside in this translation unit.

Boundary: it should not be assumed to link with the other assignment sources, since multiple C++ files may each define their own `main()`.

#### Assignment 4 Output/Variant
`assignment_4_output.cpp` is a separate Assignment 4-related artifact, likely either:
- a version intended to demonstrate expected output, or
- an alternate implementation/output capture.

It should be handled as an independent executable source unless inspection confirms otherwise. Do not combine it into the same binary as `assigment_4.cpp` without resolving duplicate entry points.

#### Assignment 5 Implementation
`assignment_5.cpp` is the independent Assignment 5 program. It is the likely location for that assignment’s OOP model, object lifecycle logic, and console-facing workflow.

#### Runtime and Data Flow
The material runtime is native C++ executed as command-line programs. Expected primary flow per assignment:
1. Process starts at the assignment file’s `main()`.
2. Construct and manipulate assignment-specific objects.
3. Read/write through standard console streams.
4. Terminate after producing results.

No persistent datastore, network API, web server, package runtime, or cloud infrastructure is represented in the provided tree.

#### Planning Constraints
Treat each source file as an isolated program boundary:
- `assigment_4.cpp`
- `assignment_4_output.cpp`
- `assignment_5.cpp`

Any shared abstractions would need to be extracted deliberately into headers/source modules; none are visible in the repository tree. The spelling difference between `assigment_4.cpp` and `assignment_4_output.cpp` is significant for build scripts and references.

Main entry points: [`assigment_4.cpp`](https://github.com/shivam20060820/oops/blob/main/assigment_4.cpp) (main()), [`assignment_5.cpp`](https://github.com/shivam20060820/oops/blob/main/assignment_5.cpp) (main()), [`assignment_4_output.cpp`](https://github.com/shivam20060820/oops/blob/main/assignment_4_output.cpp) (main())

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_assignment4["Assignment 4"]
  node_a4_source["Assignment 4 program<br/>C++ translation unit<br/>[assigment_4.cpp]"]
  node_a4_main(("main&#40;&#41;<br/>entry point<br/>[assigment_4.cpp]"))
  node_a4_model["Assignment 4 objects<br/>OOP model<br/>[assigment_4.cpp]"]
  node_a4_console{{"Standard console I/O<br/>native runtime boundary<br/>[assigment_4.cpp]"}}
  node_a4_variant["Assignment 4 output variant<br/>C++ translation unit"]
  node_a4_variant_main(("main&#40;&#41;<br/>entry point"))
  node_a4_variant_console{{"Standard console I/O<br/>native runtime boundary"}}
end

subgraph group_assignment5["Assignment 5"]
  node_a5_source["Assignment 5 program<br/>C++ translation unit<br/>[assignment_5.cpp]"]
  node_a5_main(("main&#40;&#41;<br/>entry point<br/>[assignment_5.cpp]"))
  node_a5_model["Assignment 5 objects<br/>OOP model<br/>[assignment_5.cpp]"]
  node_a5_console{{"Standard console I/O<br/>native runtime boundary<br/>[assignment_5.cpp]"}}
end

node_readme["Repository README<br/>documentation<br/>[README.md]"]

node_a4_source -->|"defines"| node_a4_main
node_a4_source -->|"defines"| node_a4_model
node_a4_main -->|"constructs and manipulates"| node_a4_model
node_a4_main -->|"reads and writes"| node_a4_console
node_a4_variant -->|"defines"| node_a4_variant_main
node_a4_variant_main -->|"reads and writes"| node_a4_variant_console
node_a5_source -->|"defines"| node_a5_main
node_a5_source -->|"defines"| node_a5_model
node_a5_main -->|"constructs and manipulates"| node_a5_model
node_a5_main -->|"reads and writes"| node_a5_console

click node_readme "https://github.com/shivam20060820/oops/blob/main/README.md"
click node_a4_source "https://github.com/shivam20060820/oops/blob/main/assigment_4.cpp"
click node_a4_main "https://github.com/shivam20060820/oops/blob/main/assigment_4.cpp"
click node_a4_model "https://github.com/shivam20060820/oops/blob/main/assigment_4.cpp"
click node_a4_console "https://github.com/shivam20060820/oops/blob/main/assigment_4.cpp"
click node_a4_variant "https://github.com/shivam20060820/oops/blob/main/assignment_4_output.cpp"
click node_a4_variant_main "https://github.com/shivam20060820/oops/blob/main/assignment_4_output.cpp"
click node_a4_variant_console "https://github.com/shivam20060820/oops/blob/main/assignment_4_output.cpp"
click node_a5_source "https://github.com/shivam20060820/oops/blob/main/assignment_5.cpp"
click node_a5_main "https://github.com/shivam20060820/oops/blob/main/assignment_5.cpp"
click node_a5_model "https://github.com/shivam20060820/oops/blob/main/assignment_5.cpp"
click node_a5_console "https://github.com/shivam20060820/oops/blob/main/assignment_5.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_a4_source,node_a4_main,node_a4_model,node_a4_console,node_a4_variant,node_a4_variant_main,node_a4_variant_console toneBlue
class node_a5_source,node_a5_main,node_a5_model,node_a5_console toneAmber
class node_readme toneNeutral
```

## Components

### Assignment 4

Independent console-program sources.

- [Assignment 4 program](https://github.com/shivam20060820/oops/blob/main/assigment_4.cpp): C++ translation unit · Self-contained implementation and entry point. · `assigment_4.cpp`
- [main()](https://github.com/shivam20060820/oops/blob/main/assigment_4.cpp): entry point · Starts the Assignment 4 console workflow. · `assigment_4.cpp`
- [Assignment 4 objects](https://github.com/shivam20060820/oops/blob/main/assigment_4.cpp): OOP model · Classes are defined and manipulated within the translation unit. · `assigment_4.cpp`
- [Standard console I/O](https://github.com/shivam20060820/oops/blob/main/assigment_4.cpp): native runtime boundary · Reads input and writes results through standard streams. · `assigment_4.cpp`
- [Assignment 4 output variant](https://github.com/shivam20060820/oops/blob/main/assignment_4_output.cpp): C++ translation unit · Separate executable artifact with its own potential entry point. · `assignment_4_output.cpp`
- [main()](https://github.com/shivam20060820/oops/blob/main/assignment_4_output.cpp): entry point · Independently starts the output or alternate Assignment 4 workflow. · `assignment_4_output.cpp`
- [Standard console I/O](https://github.com/shivam20060820/oops/blob/main/assignment_4_output.cpp): native runtime boundary · Produces or exchanges output through standard streams. · `assignment_4_output.cpp`

### Assignment 5

Independent console program.

- [Assignment 5 program](https://github.com/shivam20060820/oops/blob/main/assignment_5.cpp): C++ translation unit · Self-contained implementation and entry point. · `assignment_5.cpp`
- [main()](https://github.com/shivam20060820/oops/blob/main/assignment_5.cpp): entry point · Starts the Assignment 5 console workflow. · `assignment_5.cpp`
- [Assignment 5 objects](https://github.com/shivam20060820/oops/blob/main/assignment_5.cpp): OOP model · Contains assignment-specific object lifecycle logic. · `assignment_5.cpp`
- [Standard console I/O](https://github.com/shivam20060820/oops/blob/main/assignment_5.cpp): native runtime boundary · Reads input and writes results through standard streams. · `assignment_5.cpp`

### Other components

- [Repository README](https://github.com/shivam20060820/oops/blob/main/README.md): documentation · Describes the assignment repository. · `README.md`

## Connections

- Assignment 4 program → main(): defines
- Assignment 4 program → Assignment 4 objects: defines
- main() → Assignment 4 objects: constructs and manipulates
- main() → Standard console I/O: reads and writes
- Assignment 4 output variant → main(): defines
- main() → Standard console I/O: reads and writes
- Assignment 5 program → main(): defines
- Assignment 5 program → Assignment 5 objects: defines
- main() → Assignment 5 objects: constructs and manipulates
- main() → Standard console I/O: reads and writes
