A solicitação
“Create an ATM withdrawal control-flow diagram: insert a card, enter and validate a PIN with limited attempts, choose withdrawal, check account balance, dispense cash for sufficient funds, print a receipt when requested, return the card, and show an error for failed checks.”
Depois, tenteAdd a daily withdrawal-limit check before dispensing cash.Change the receipt decision to send a digital receipt.
O que há neste desenho
Entenda as decisões por trás dele.
01
Validate PIN and allow up to three attempts
02
Check sufficient funds before dispensing
03
Enforce daily withdrawal limit
04
Ask whether to print receipt
Use for modeling authentication, financial transaction flows, or any sequential control flow with loops and terminal failure states.