You are on page 1of 4

Æ 


    

Ex1, p.221

a)‘Æ ario

Us as A pt Paymt


Primary path

c ‘ • customer chooses a product/s from the store and decides to buy it She/he goes to the cashier and gives
the chosen product/s and his/her loyalty card to the cashier of the IC• / everShut retail outlet shop
2 ‘ he customer͛s loyalty card is scanned and validated
3 ‘ he barcode of the product is scanned and validated If the scan was successful, the total cost of the
purchase is calculated and displayed on the computer screen
4 ‘ he cashier at IC• / everShut retail outlet asks the customer to choose a payment method
5 ‘ he customer chooses a payment method from those listed by the cashier
5 c‘If the customer decides to use his/her loyalty points and the amount of points is sufficient, the products
are exchanged for the loyalty points o further payment involved he customer͛s loyalty points are
recalculated
5 2‘If the customer decides to pay with a debit/credit card, the cashier offers the customer a PI machine
6 ‘ he customer slides the magnetic side of the card through the machine and enters his/her PI code
6 c c‘ Payment is processed
6 c 2‘ If the payment is successful, the cashier prints out an invoice and hands it to the customer

• ternatives to the primary path

c ‘ If the customer doesn͛t have a loyalty card, skip ¬  


2 ‘ If the client doesn͛t carry the loyalty card with him/herself, but knows its number, the cashier enters the
number of card into the system manually
3 ‘ If the chosen product/s can͛t be validated (barcode scanner is not working properly/incorrect barcode of the
product, etc , use the Product Validation‘case
4 ‘ If the customer has a loyalty card, but doesn͛t have enough loyalty/bonus points, the cashier asks for
payment by cash/debit/credit card
5 ‘ If the customer wants to cancel the order, use the Cancel case
6 ‘ If the customer wants to change the order, the cashier deselects goods and resumes at step c he
customer͛s loyalty points balance is restored ʹ Calculate points case
7 ‘ In case of debit/credit cards failure, the customer is offered to pay with cash, or cancel the order

cP ag e
¦)‘Æ  diagram

{P ag e
)‘ Colla¦oratio diagram

,-./0.12132.
4-./0.563.7

 

 0 OPQ
N-. T  / .
3.5 6 

,R.S  3 P1/  03
  2 Q
/ / .5
.5    V P ag e
,U N . 7/
,
.
d)‘Class diagram

£P ag e

You might also like