volume_mute
Activity Diagram for ATM Cash Withdrawal
publish date: 2026/06/08 22:17:20.891892 UTC
volume_mutePlease drag and drop the options to sort them
You are modeling the data processing involved when a customer withdraws cash from a bank ATM using a UML activity diagram. Sort the following activities into the correct sequence.
ATM validates card and PIN with bank system
Customer selects withdrawal amount
System dispenses cash and debits account
System checks account balance
Customer takes cash and card; ATM prints receipt
Customer inserts card and enters PIN
Correct Answer
(1) Customer inserts card and enters PIN
(2) ATM validates card and PIN with bank system
(3) Customer selects withdrawal amount
(4) System checks account balance
(5) System dispenses cash and debits account
(6) Customer takes cash and card; ATM prints receipt
Explanation
The correct sequence for ATM cash withdrawal:
- Card insertion and PIN entry;
- Authentication with bank system;
- Amount selection;
- Balance check (a precondition for dispensing);
- Cash dispensed and account debited (these are tightly coupled and often shown as concurrent with a synchronization bar);
- Customer collects cash and receipt. This maps cleanly to a data-flow activity diagram showing the data objects (PIN data, account data, amount, cash) flowing between activities.
Reference
Software Engineering, Ian Sommerville, 9th edition
