# onsluz/pyo-pesan-yakin-online architecture

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

- Interactive diagram: https://gitdiagram.com/onsluz/pyo-pesan-yakin-online
- Repository: https://github.com/onsluz/pyo-pesan-yakin-online

## Overview

PYO is a single-file, Indonesian-language cinema ticket-booking console program. Its principal workflow is account registration/login, film/date/showtime selection, seat selection, optional food and promotions, payment, e-ticket generation, and gate QR scanning. The excerpt shows these stages in PYO.cpp; omitted portions limit confidence about some transitions and details, and the README provides no additional capability descriptions.

Main entry points: [`PYO.cpp`](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp) (E-ticket generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_booking["Booking workflow"]
  node_account["Account access<br/>[PYO.cpp]"]
  node_film["Film selection<br/>[PYO.cpp]"]
  node_schedule["Showtime selection<br/>[PYO.cpp]"]
  node_seats["Seat selection<br/>[PYO.cpp]"]
  node_food["Food and drink<br/>[PYO.cpp]"]
  node_promotion["Promo calculation<br/>[PYO.cpp]"]
  node_summary["Order summary<br/>[PYO.cpp]"]
  node_accountfile["Account file<br/>[PYO.cpp]"]
end

subgraph group_fulfillment["Payment and entry"]
  node_payment["Payment choice<br/>[PYO.cpp]"]
  node_ticket["E-ticket generation<br/>[PYO.cpp]"]
  node_ticketfile["Ticket file<br/>[PYO.cpp]"]
  node_gate["Gate QR scan<br/>[PYO.cpp]"]
  node_counterfile["Ticket counter file<br/>[PYO.cpp]"]
end

node_customer(("Customer"))

node_customer -->|"registers or logs in"| node_account
node_account -->|"loads and saves"| node_accountfile
node_customer -->|"selects film"| node_film
node_customer -->|"selects date and time"| node_schedule
node_customer -->|"chooses seats"| node_seats
node_customer -->|"orders items"| node_food
node_customer -->|"enters promo"| node_promotion
node_customer -->|"chooses method"| node_payment
node_payment -->|"generates after payment"| node_ticket
node_ticket -->|"writes ticket"| node_ticketfile
node_customer -->|"presents QR"| node_gate
node_ticket -->|"provides QR"| node_gate
node_ticket -->|"allocates number"| node_counterfile

click node_account "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_film "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_schedule "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_seats "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_food "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_promotion "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_summary "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_payment "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_ticket "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_ticketfile "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_gate "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_accountfile "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp"
click node_counterfile "https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.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_account,node_film,node_schedule,node_seats,node_food,node_promotion,node_summary,node_accountfile toneBlue
class node_payment,node_ticket,node_ticketfile,node_gate,node_counterfile toneAmber
class node_customer toneIndigo
```

## Components

### Booking workflow

- [Account access](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [Film selection](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [Showtime selection](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [Seat selection](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [Food and drink](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [Promo calculation](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [Order summary](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [Account file](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`

### Payment and entry

- [Payment choice](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [E-ticket generation](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [Ticket file](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [Gate QR scan](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`
- [Ticket counter file](https://github.com/onsluz/pyo-pesan-yakin-online/blob/main/PYO.cpp): `PYO.cpp`

### Other components

- **Customer**

## Connections

- Customer → Account access: registers or logs in (evidence: `PYO.cpp`)
- Account access → Account file: loads and saves (evidence: `PYO.cpp`)
- Customer → Film selection: selects film (evidence: `PYO.cpp`)
- Customer → Showtime selection: selects date and time (evidence: `PYO.cpp`)
- Customer → Seat selection: chooses seats (evidence: `PYO.cpp`)
- Customer → Food and drink: orders items (evidence: `PYO.cpp`)
- Customer → Promo calculation: enters promo (evidence: `PYO.cpp`)
- Customer → Payment choice: chooses method (evidence: `PYO.cpp`)
- Payment choice → E-ticket generation: generates after payment (evidence: `PYO.cpp`)
- E-ticket generation → Ticket file: writes ticket (evidence: `PYO.cpp`)
- Customer → Gate QR scan: presents QR (evidence: `PYO.cpp`)
- E-ticket generation → Gate QR scan: provides QR (evidence: `PYO.cpp`)
- E-ticket generation → Ticket counter file: allocates number (evidence: `PYO.cpp`)
