12 — Coffee Machine
Purpose
[stub: coffee-machine]
Metadata
| Author | Amit Singh |
| Scope | low-level-design |
Local graph
Related notes
1 — Parking Lot
Models a multi-level parking lot with heterogeneous vehicle and spot types, exercising strategy-based spot allocation and a clean split between lot, floor, and spot entities.
10 — ATM
Models an ATM's cash withdrawal, deposit, and balance-inquiry flows, exercising the state pattern across card-inserted, PIN-entry, and transaction states plus the greedy cash-dispensing algorithm.
11 — Vending Machine
Models a vending machine's product inventory, coin/payment handling, and dispensing logic, exercising the state pattern across idle, selection, payment, and dispense states.
13 — Cricbuzz
Models live cricket match scoring, commentary, and scorecards, exercising the observer pattern for pushing real-time score updates to subscribed clients.