Lab 3 Sequence Diagrams, Activity Diagrams
Lab 3 Sequence Diagrams, Activity Diagrams
In this lab, students will learn how to draw sequence and activity diagrams according to a given
scenario.
Objectives
After the completion of this lab, students will be able to draw following:
Sequence Diagram
Activity Diagram
Tools/Software Requirement
Papyrus/Rational Rose
Description
Lab Task
Task 1
This week’s task is to draw Sequence diagram of the ATM system for the following use cases:
Actors involved:
Operator
Customer
Bank
Following are the names and brief description of each of the use cases of the ATM system
Before shutting down the ATM system, the operator makes sure that no customer is using the
machine. He then turns the switch to the "off" position. The connection to the bank will be shut
down. The operator can then freely to remove deposited envelopes, replenish cash and paper, etc.
A session is started when a customer inserts an ATM card into the card reader slot of the
machine. The ATM pulls the card into the machine and reads it. (If the reader cannot read the
card due to improper insertion or a damaged stripe, the card is ejected, an error screen is
displayed, and the session is aborted.) The customer is asked to enter his/her PIN, and is then
allowed to perform one or more transactions, choosing from a menu of possible types of
transaction in each case. After each transaction, the customer is asked whether he/she would like
to perform another transaction. When the customer is finished with the transactions, the card is
ejected from the machine and the session ends. If a transaction is aborted due to too many invalid
PIN entries, the session is also aborted, with the card being retained in the machine.
A transaction use case is started within a session when the customer chooses a transaction type
from a menu of options. The customer will be asked to provide appropriate details (e.g.
account(s) involved, amount). The transaction will then be sent to the bank, along with
information from the customer's card and the PIN the customer entered.
If the bank approves the transaction, any steps needed to complete the transaction (e.g.
dispensing cash or accepting an envelope) will be performed, and then a receipt will be printed.
Then the customer will be asked whether he/she wishes to do another transaction.
If the bank reports that the customer's PIN is invalid, the Invalid PIN extension will be
performed and then an attempt will be made to continue the transaction. If the customer's card is
retained due to too many invalid PINs, the transaction will be aborted, and the customer will not
be offered the option of doing another.
The customer may cancel a transaction by pressing the Cancel key as described for each
individual type of transaction below, also following use cases use transaction use case.
Task 2
Based on the scenario discussed in Task1, draw an activity diagram of withdrawing money from
the ATM.
Answer:
Solution
Task 1
Task 2
Deliverables
Compile a single word document by filling in the solution part and submit this Word file on
LMS. This lab grading policy is as follows: The lab is graded between 0 to 10 marks. The
submitted solution can get a maximum of 5 marks. At the end of each lab or in the next lab, there
will be a viva related to the tasks. The viva has a weightage of 5 marks. Insert the
solution/answer in this document. You must show the implementation of the tasks in the
designing tool, along with your completed Word document to get your work graded. You must
also submit this Word document on the LMS. In case of any problems with submissions on
LMS, submit your Lab assignments by emailing it to nadeem.nawaz@seecs.edu.pk.