0% found this document useful (0 votes)
64 views4 pages

Assignment 6-Sequence

The document outlines sequence diagrams for two processes: ATM cash withdrawal and online train ticket booking. The ATM process involves card insertion, PIN validation, cash withdrawal, and transaction completion, emphasizing security and balance verification. The online ticket booking process details user login, search, selection, payment processing, and ticket confirmation, highlighting user interactions and payment validation.

Uploaded by

adrita.exam.2004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views4 pages

Assignment 6-Sequence

The document outlines sequence diagrams for two processes: ATM cash withdrawal and online train ticket booking. The ATM process involves card insertion, PIN validation, cash withdrawal, and transaction completion, emphasizing security and balance verification. The online ticket booking process details user login, search, selection, payment processing, and ticket confirmation, highlighting user interactions and payment validation.

Uploaded by

adrita.exam.2004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Assignment 6

Sequence Diagrams

Case Study: ATM Cash Withdrawal Process


Description:
The sequence diagram represents the interaction flow for a cash withdrawal
transaction at an ATM, involving the Customer, ATM Interface, and Bank Server:
- Step 1: The customer inserts their ATM card.
- Step 2: The ATM prompts for the PIN, which the customer enters, and the
system sends for validation.
- Step 3: The Bank Server authenticates the PIN. If valid, the transaction
proceeds; otherwise, the system prompts for re-entry or blocks the account
after repeated failed attempts.
- Step 4: The customer selects the ‘Withdraw Cash’ option and enters the
desired amount.
- Step 5: The system checks the customer’s account balance via the Bank
Server.
- Step 6: Upon confirmation of sufficient funds, the ATM dispenses the cash,
deducts the amount from the balance, and prints a transaction receipt.
- Step 7: The customer retrieves their card, completing the transaction.
This sequence emphasizes transaction security and real-time balance
verification.
Figure 1:Sequence diagram for ATM Cash Withdrawal
Case Study: Online Train Ticket Booking Process
Description:
This sequence diagram models the booking of a train ticket online. Key entities include User, Booking
System, and Payment Gateway:

- Step 1: The user logs into the system and initiates a search by entering travel details.

- Step 2: The booking system presents available options based on the user’s search.

- Step 3: The user selects a train, travel class, and seats.

- Step 4: The booking system initiates the payment process by redirecting the user to the Payment
Gateway.

- Step 5: The Payment Gateway processes the transaction and returns the status to the booking
system.

- Step 6: On successful payment, the booking system confirms the reservation and provides a digital
ticket for download.

This sequence emphasizes the step-by-step process from selection to final booking confirmation,
covering user actions, system interactions, and payment validation.
Figure 2:Sequence diagram for Online train ticket booking

You might also like