# vans2508/comp1850-semester1_work architecture

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

- Interactive diagram: https://gitdiagram.com/vans2508/comp1850-semester1_work
- Repository: https://github.com/vans2508/comp1850-semester1_work

## Overview

This is COMP1850 semester-one teaching material: a collection of week-by-week exercises, worksheets and small runnable programs, not one integrated application. The principal workflow is a learner running an exercise, providing input or data, and seeing a computed or visual result. The graph highlights representative programming, data, object-oriented, and analysis stages, plus the earthquake-feed example. Many listed exercises are independent; links are shown only where the README or sampled source supports them. The dataset’s feed-reading and Quake construction are unfinished in the excerpt.

Main entry points: [`week1.6/session1/task5/dataset.py`](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.6/session1/task5/dataset.py) (Earthquake dataset), [`week1.6/session1/task4/feed.py`](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.6/session1/task4/feed.py) (Earthquake feed), [`week1.8/session1/task4-combined/plot2_ramen.py`](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.8/session1/task4-combined/plot2_ramen.py) (Ramen explorer), [`week1.2/worksheet/task2.py`](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.2/worksheet/task2.py) (Number summaries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["Programming exercises"]
  node_intro["Input and output<br/>[task2.py]"]
  node_numbers["Number summaries<br/>[task2.py]"]
  node_number_input["Read numbers<br/>[util.py]"]
  node_authentication["Authentication exercise<br/>[auth.py]"]
end

subgraph group_data["Data exercises"]
  node_grade_report["Grade report exercise<br/>[average_grade.py]"]
  node_quake_feed["Earthquake feed<br/>[feed.py]"]
  node_quake_dataset["Earthquake dataset<br/>[dataset.py]"]
  node_image["Greyscale image<br/>[image.py]"]
end

subgraph group_objects["Object-oriented exercises"]
  node_rectangle["Rectangle model<br/>[rect.py]"]
  node_quake["Earthquake record<br/>[quake.py]"]
end

subgraph group_analysis["Analysis and visualization"]
  node_ramen["Ramen explorer<br/>[plot2_ramen.py]"]
end

node_learner(("Learner"))
node_ramen_csv["Ramen ratings CSV"]
node_usgs(("USGS feed service"))

node_learner -->|"enters input"| node_intro
node_learner -->|"enters credentials"| node_authentication
node_learner -->|"selects menu"| node_ramen
node_numbers -->|"imports reader"| node_number_input
node_grade_report -.->|"writes report"| node_learner
node_quake_dataset -->|"validates feed"| node_quake_feed
node_quake_dataset -.->|"uses record"| node_quake
node_quake_feed -->|"fetches CSV"| node_usgs
node_ramen -->|"loads ratings"| node_ramen_csv

click node_intro "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.1/worksheet/task2.py"
click node_numbers "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.2/worksheet/task2.py"
click node_number_input "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.2/worksheet/util.py"
click node_authentication "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.2/session2/task5/auth.py"
click node_grade_report "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.3/session2/task3/2_average_grade/average_grade.py"
click node_rectangle "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.5/worksheet/rect.py"
click node_quake_feed "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.6/session1/task4/feed.py"
click node_quake "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.6/session1/task4/quake.py"
click node_quake_dataset "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.6/session1/task5/dataset.py"
click node_image "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.6/session2/image.py"
click node_ramen "https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.8/session1/task4-combined/plot2_ramen.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_intro,node_numbers,node_number_input,node_authentication toneBlue
class node_grade_report,node_quake_feed,node_quake_dataset,node_image toneAmber
class node_rectangle,node_quake toneMint
class node_ramen toneRose
class node_learner,node_ramen_csv,node_usgs toneIndigo
```

## Components

### Programming exercises

- [Input and output](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.1/worksheet/task2.py): `week1.1/worksheet/task2.py`
- [Number summaries](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.2/worksheet/task2.py): `week1.2/worksheet/task2.py`
- [Read numbers](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.2/worksheet/util.py): `week1.2/worksheet/util.py`
- [Authentication exercise](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.2/session2/task5/auth.py): `week1.2/session2/task5/auth.py`

### Data exercises

- [Grade report exercise](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.3/session2/task3/2_average_grade/average_grade.py): `week1.3/session2/task3/2_average_grade/average_grade.py`
- [Earthquake feed](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.6/session1/task4/feed.py): `week1.6/session1/task4/feed.py`
- [Earthquake dataset](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.6/session1/task5/dataset.py): `week1.6/session1/task5/dataset.py`
- [Greyscale image](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.6/session2/image.py): `week1.6/session2/image.py`

### Object-oriented exercises

- [Rectangle model](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.5/worksheet/rect.py): `week1.5/worksheet/rect.py`
- [Earthquake record](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.6/session1/task4/quake.py): `week1.6/session1/task4/quake.py`

### Analysis and visualization

- [Ramen explorer](https://github.com/vans2508/comp1850-semester1_work/blob/main/week1.8/session1/task4-combined/plot2_ramen.py): `week1.8/session1/task4-combined/plot2_ramen.py`

### Other components

- **Learner**
- **Ramen ratings CSV**
- **USGS feed service**

## Connections

- Learner → Input and output: enters input (evidence: `week1.1/worksheet/task2.py`)
- Learner → Authentication exercise: enters credentials (evidence: `week1.2/session2/task5/auth.py`)
- Learner → Ramen explorer: selects menu (evidence: `week1.8/session1/task4-combined/plot2_ramen.py`)
- Number summaries → Read numbers: imports reader (evidence: `week1.2/worksheet/task2.py`)
- Grade report exercise → Learner: writes report
- Earthquake dataset → Earthquake feed: validates feed (evidence: `week1.6/session1/task5/dataset.py`)
- Earthquake dataset → Earthquake record: uses record (evidence: `week1.6/session1/task5/dataset.py`)
- Earthquake feed → USGS feed service: fetches CSV (evidence: `week1.6/session1/task4/feed.py`)
- Ramen explorer → Ramen ratings CSV: loads ratings (evidence: `week1.8/session1/task4-combined/plot2_ramen.py`)
