# thaiorng12/assignment-oop architecture

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

- Interactive diagram: https://gitdiagram.com/thaiorng12/assignment-oop
- Repository: https://github.com/thaiorng12/assignment-oop

## Overview

This repository is a collection of standalone Python learning exercises, not one integrated application. The clearest user-facing workflows are a CSV-based student-record script and an in-memory shopping cart; a separate script manages student records in JSON. Other samples cover article-list operations, library object examples, and basic functions. Edges reflect only visible calls and file operations; the README is empty, and the exercises should not be assumed to share a runtime or data model.

Main entry points: [`Assignment/python.py`](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/Assignment/python.py) (Student Manager), [`test3.py`](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/test3.py) (Student Menu), [`funtion.py`](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/funtion.py) (Function Exercises), [`storage.csv`](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/storage.csv) (CSV File)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_student_csv["CSV Student Records"]
  node_csv_manager["Student Manager<br/>[python.py]"]
  node_csv_file[("CSV File<br/>[storage.csv]")]
end

subgraph group_student_json["JSON Student Records"]
  node_json_manager["Student Menu<br/>[test3.py]"]
  node_json_store[("JSON Data")]
end

subgraph group_examples["Standalone Examples"]
  node_cart["Shopping Cart<br/>[python.py]"]
  node_articles["Article List<br/>[test12.py]"]
  node_library["Library Objects<br/>[OOPhomework.py]"]
  node_inheritance["Library Inheritance<br/>[inheritance.py]"]
  node_functions["Function Exercises<br/>[funtion.py]"]
  node_function_storage["Math and Price"]
end

node_user(("User"))

node_user -->|"enters records"| node_csv_manager
node_csv_manager -->|"reads and writes"| node_csv_file
node_user -->|"chooses actions"| node_json_manager
node_json_manager -->|"loads and saves"| node_json_store
node_user -->|"chooses actions"| node_cart
node_user -->|"chooses actions"| node_articles
node_user -->|"provides name"| node_library
node_user -->|"provides name"| node_inheritance
node_user -->|"provides input"| node_functions
node_functions -->|"imports functions"| node_function_storage

click node_csv_manager "https://github.com/thaiorng12/assignment-oop/blob/thaiorng/Assignment/python.py"
click node_csv_file "https://github.com/thaiorng12/assignment-oop/blob/thaiorng/storage.csv"
click node_json_manager "https://github.com/thaiorng12/assignment-oop/blob/thaiorng/test3.py"
click node_cart "https://github.com/thaiorng12/assignment-oop/blob/thaiorng/python.py"
click node_articles "https://github.com/thaiorng12/assignment-oop/blob/thaiorng/test12.py"
click node_library "https://github.com/thaiorng12/assignment-oop/blob/thaiorng/OOPhomework.py"
click node_inheritance "https://github.com/thaiorng12/assignment-oop/blob/thaiorng/inheritance.py"
click node_functions "https://github.com/thaiorng12/assignment-oop/blob/thaiorng/funtion.py"
click node_function_storage "https://github.com/thaiorng12/assignment-oop/blob/thaiorng/function_storage.py"

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_csv_manager,node_csv_file,node_user toneBlue
class node_json_manager,node_json_store toneAmber
class node_cart,node_articles,node_library,node_inheritance,node_functions,node_function_storage toneMint
```

## Components

### CSV Student Records

- [Student Manager](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/Assignment/python.py): `Assignment/python.py`
- [CSV File](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/storage.csv): `storage.csv`

### JSON Student Records

- [Student Menu](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/test3.py): `test3.py`
- **JSON Data**

### Standalone Examples

- [Shopping Cart](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/python.py): `python.py`
- [Article List](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/test12.py): `test12.py`
- [Library Objects](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/OOPhomework.py): `OOPhomework.py`
- [Library Inheritance](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/inheritance.py): `inheritance.py`
- [Function Exercises](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/funtion.py): `funtion.py`
- [Math and Price](https://github.com/thaiorng12/assignment-oop/blob/thaiorng/function_storage.py): `function_storage.py`

### Other components

- **User**

## Connections

- User → Student Manager: enters records (evidence: `Assignment/python.py`)
- Student Manager → CSV File: reads and writes (evidence: `Assignment/python.py`)
- User → Student Menu: chooses actions (evidence: `test3.py`)
- Student Menu → JSON Data: loads and saves (evidence: `test3.py`)
- User → Shopping Cart: chooses actions (evidence: `python.py`)
- User → Article List: chooses actions (evidence: `test12.py`)
- User → Library Objects: provides name (evidence: `OOPhomework.py`)
- User → Library Inheritance: provides name (evidence: `inheritance.py`)
- User → Function Exercises: provides input (evidence: `funtion.py`)
- Function Exercises → Math and Price: imports functions (evidence: `funtion.py`)
