# nickolasnolte1/reservacion_asiento architecture

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

- Interactive diagram: https://gitdiagram.com/nickolasnolte1/reservacion_asiento
- Repository: https://github.com/nickolasnolte1/reservacion_asiento

## Overview

This is a small C console prototype for Samalte Airlines: it greets the user, asks for a flight number, presents a menu, and offers seat selection or a seat map. The menu in `main` dispatches these actions. The shown seat-selection function only reads and prints a character; the map prints seat data but does not implement a complete reservation workflow. Both files contain the same source; edges below are evidenced by the root `Reservar.c` excerpt.

Main entry points: [`Reservar.c`](https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c) (Menu and flow)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Passenger"))
node_main["Menu and flow<br/>[Reservar.c]"]
node_welcome["Flight welcome<br/>[Reservar.c]"]
node_seat["Seat selection<br/>[Reservar.c]"]
node_map["Seat map<br/>[Reservar.c]"]
node_screen["Screen clearing<br/>[Reservar.c]"]
node_colors["Terminal colors<br/>[Reservar.c]"]
node_terminal(("Console"))
node_shell(("System shell"))

node_user -->|"chooses menu"| node_main
node_main -->|"calls"| node_welcome
node_main -->|"calls"| node_seat
node_main -->|"calls"| node_map
node_main -->|"calls"| node_screen
node_main -->|"reads and prints"| node_terminal
node_welcome -->|"calls"| node_colors
node_welcome -->|"prints greeting"| node_terminal
node_seat -->|"reads and prints"| node_terminal
node_map -->|"prints map"| node_terminal
node_screen -->|"runs command"| node_shell

click node_main "https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c"
click node_welcome "https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c"
click node_seat "https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c"
click node_map "https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c"
click node_screen "https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c"
click node_colors "https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.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_user,node_terminal,node_shell toneIndigo
class node_main,node_welcome,node_seat,node_map,node_colors toneTeal
class node_screen toneBlue
```

## Components

### Other components

- **Passenger**
- [Menu and flow](https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c): `Reservar.c`
- [Flight welcome](https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c): `Reservar.c`
- [Seat selection](https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c): `Reservar.c`
- [Seat map](https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c): `Reservar.c`
- [Screen clearing](https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c): `Reservar.c`
- [Terminal colors](https://github.com/nickolasnolte1/reservacion_asiento/blob/master/Reservar.c): `Reservar.c`
- **Console**
- **System shell**

## Connections

- Passenger → Menu and flow: chooses menu (evidence: `Reservar.c`)
- Menu and flow → Flight welcome: calls (evidence: `Reservar.c`)
- Menu and flow → Seat selection: calls (evidence: `Reservar.c`)
- Menu and flow → Seat map: calls (evidence: `Reservar.c`)
- Menu and flow → Screen clearing: calls (evidence: `Reservar.c`)
- Menu and flow → Console: reads and prints (evidence: `Reservar.c`)
- Flight welcome → Terminal colors: calls (evidence: `Reservar.c`)
- Flight welcome → Console: prints greeting (evidence: `Reservar.c`)
- Seat selection → Console: reads and prints (evidence: `Reservar.c`)
- Seat map → Console: prints map (evidence: `Reservar.c`)
- Screen clearing → System shell: runs command (evidence: `Reservar.c`)
