# dars1k23/labs_c_sem_1 architecture

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

- Interactive diagram: https://gitdiagram.com/dars1k23/labs_c_sem_1
- Repository: https://github.com/dars1k23/labs_c_sem_1

## Overview

This repository is a set of independent C lab exercises, not one integrated application. Each program takes console input and produces a result; the exercises cover number conversion, series approximation, array operations, text processing, and linked-list transformation. The graph keeps each lab separate and shows the internal calls visible in the excerpts. Lab 4a’s implementation details were not excerpted, so its node is described generically and its entry-point link is marked unverified.

Main entry points: [`lab_work_3/main.c`](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_3/main.c) (Array entry), [`lab_work_4/lab_work_4_a/main.c`](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_a/main.c) (Text entry), [`lab_work_4/lab_work_4_b/main.c`](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_b/main.c) (Text entry), [`lab_work_4/lab_work_4_b/func.c`](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_b/func.c) (Word rotation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lab1["Lab 1 · Conversion"]
  node_convert["Binary conversion<br/>[Task.c]"]
end

subgraph group_lab2["Lab 2 · Series"]
  node_series_a["Fixed series<br/>[Task_a.c]"]
  node_series_b["Precision series<br/>[Task_b.c]"]
end

subgraph group_lab3["Lab 3 · Arrays"]
  node_array_entry["Array entry<br/>[main.c]"]
  node_array_ops["Array operations<br/>[utils.c]"]
end

subgraph group_lab4a["Lab 4a · Text"]
  node_text_a_entry["Text entry<br/>[main.c]"]
  node_text_a_run["Text processing<br/>[func.c]"]
end

subgraph group_lab4b["Lab 4b · Text"]
  node_text_b_entry["Text entry<br/>[main.c]"]
  node_rotate["Word rotation<br/>[func.c]"]
  node_string_helpers["String helpers<br/>[my_string.c]"]
end

subgraph group_lab5["Lab 5 · Words"]
  node_word_entry["Line entry<br/>[main.c]"]
  node_word_transform["Word reordering<br/>[func.c]"]
end

node_user(("Console user"))

node_user -->|"enters number"| node_convert
node_user -->|"enters values"| node_series_a
node_user -->|"enters values"| node_series_b
node_user -->|"selects actions"| node_array_entry
node_array_entry -.->|"calls run"| node_array_ops
node_user -.->|"enters text"| node_text_a_entry
node_text_a_entry -.->|"calls run"| node_text_a_run
node_user -->|"enters text"| node_text_b_entry
node_text_b_entry -.->|"calls run"| node_rotate
node_rotate -->|"uses routines"| node_string_helpers
node_user -->|"enters lines"| node_word_entry
node_word_entry -.->|"calls run"| node_word_transform

click node_convert "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_1/Task.c"
click node_series_a "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_2/Task_a.c"
click node_series_b "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_2/Task_b.c"
click node_array_entry "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_3/main.c"
click node_array_ops "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_3/utils.c"
click node_text_a_entry "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_a/main.c"
click node_text_a_run "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_a/func.c"
click node_text_b_entry "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_b/main.c"
click node_rotate "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_b/func.c"
click node_string_helpers "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_b/my_string.c"
click node_word_entry "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_5/main.c"
click node_word_transform "https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_5/func.c"

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_convert,node_user toneBlue
class node_series_a,node_series_b toneAmber
class node_array_entry,node_array_ops toneMint
class node_text_a_entry,node_text_a_run toneRose
class node_text_b_entry,node_rotate,node_string_helpers toneIndigo
class node_word_entry,node_word_transform toneTeal
```

## Components

### Lab 1 · Conversion

- [Binary conversion](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_1/Task.c): `lab_work_1/Task.c`

### Lab 2 · Series

- [Fixed series](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_2/Task_a.c): `lab_work_2/Task_a.c`
- [Precision series](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_2/Task_b.c): `lab_work_2/Task_b.c`

### Lab 3 · Arrays

- [Array entry](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_3/main.c): `lab_work_3/main.c`
- [Array operations](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_3/utils.c): `lab_work_3/utils.c`

### Lab 4a · Text

- [Text entry](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_a/main.c): `lab_work_4/lab_work_4_a/main.c`
- [Text processing](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_a/func.c): `lab_work_4/lab_work_4_a/func.c`

### Lab 4b · Text

- [Text entry](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_b/main.c): `lab_work_4/lab_work_4_b/main.c`
- [Word rotation](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_b/func.c): `lab_work_4/lab_work_4_b/func.c`
- [String helpers](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_4/lab_work_4_b/my_string.c): `lab_work_4/lab_work_4_b/my_string.c`

### Lab 5 · Words

- [Line entry](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_5/main.c): `lab_work_5/main.c`
- [Word reordering](https://github.com/dars1k23/labs_c_sem_1/blob/main/lab_work_5/func.c): `lab_work_5/func.c`

### Other components

- **Console user**

## Connections

- Console user → Binary conversion: enters number (evidence: `lab_work_1/Task.c`)
- Console user → Fixed series: enters values (evidence: `lab_work_2/Task_a.c`)
- Console user → Precision series: enters values (evidence: `lab_work_2/Task_b.c`)
- Console user → Array entry: selects actions
- Array entry → Array operations: calls run
- Console user → Text entry: enters text
- Text entry → Text processing: calls run
- Console user → Text entry: enters text
- Text entry → Word rotation: calls run
- Word rotation → String helpers: uses routines (evidence: `lab_work_4/lab_work_4_b/func.c`)
- Console user → Line entry: enters lines
- Line entry → Word reordering: calls run
