volume_mute

Activity Diagram for ATM Cash Withdrawal

publish date2026/06/08 22:17:20.891892 UTC

volume_mute
False
Please 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: 

  1. Card insertion and PIN entry; 
  2. Authentication with bank system; 
  3. Amount selection; 
  4. Balance check (a precondition for dispensing); 
  5. Cash dispensed and account debited (these are tightly coupled and often shown as concurrent with a synchronization bar); 
  6. 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


Quizzes you can take where this question appears