Lab No-2
Lab No-2
2 8/11/2023
Class Diagrams
• The ATM is associated with only one bank
o It gives access to all the accounts the customer owns in the bank
• Several types of transactions can be chained in a single session
o Withdrawal, deposit, transfer between the customer's own accounts, consulting an
account
o The customer may obtain a printed receipt for each transaction
• The card contains
o an ID number
o an expiration date
o a secret code
• The card must be verified by the ATM
o The customer cannot make more than 3 attempts to enter the correct code, otherwise the
card is swallowed
• Interface
o Keyboard and screen, with menus
o The customer may cancel the current transaction at meaningful points
• The connections with the bank are kept to a minimum
o When a session is opened, a connection makes it possible to known all the accounts the
customer owns
o Every night, the information about the current day transactions are transferred to the bank
• From time to time an employee manually
o empties the machine and/or fills it with bank notes
o Supplies consumables and does any maintenance that may be needed.
Functional requirements
Card Verification:
The system must verify the customer's card by checking the ID number, expiration date, and
secret code.
Perform Transactions:
The system must allow customers to perform various transactions such as withdrawal, deposit,
transfer between accounts, and account inquiry.
Print Receipt:
The system must provide an option for the customer to obtain a printed receipt for each
transaction.
Cancel Transaction:
The system must allow customers to cancel the current transaction at meaningful points without
any adverse effects.
Card Retention:
If the customer enters an incorrect PIN more than three times, the system must retain the card.
A connection to the bank must be established when a session is opened to retrieve information
about the customer's accounts.
Session Initialization:
The system must transfer information about daily transactions to the bank every night.
Manual Maintenance:
The system must support manual maintenance activities performed by an employee, including
emptying the machine, filling it with banknotes, supplying consumables, and performing any
needed maintenance.
Transfer Transactions to the bank:
The system must transfer information about daily transactions to the bank every night.