0% found this document useful (0 votes)
183 views10 pages

Activity Diagram PDF

The document contains a class diagram modeling the components and interactions of an automated teller machine (ATM) system. The diagram shows classes for the various hardware components of the ATM like the screen, keypad, card reader, cash dispenser, and deposit slot. It also models the software components like the customer and bank accounts, transactions, and the interaction processes for activities like depositing, withdrawing, transferring funds, and checking balances. Relationships between the classes like aggregation, association and generalization are indicated.

Uploaded by

Niño Anthony
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
183 views10 pages

Activity Diagram PDF

The document contains a class diagram modeling the components and interactions of an automated teller machine (ATM) system. The diagram shows classes for the various hardware components of the ATM like the screen, keypad, card reader, cash dispenser, and deposit slot. It also models the software components like the customer and bank accounts, transactions, and the interaction processes for activities like depositing, withdrawing, transferring funds, and checking balances. Relationships between the classes like aggregation, association and generalization are indicated.

Uploaded by

Niño Anthony
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Instructions: Kindly fill-up with necessary information in the space provided.

IC2DC
Student’s Section:
Visaya Niño Anthony D.
Name: (Last Name First Name Middle Initial) 2020-2021
School Year:
Track/Strand Technical Vocational and Livelihood (TVL)  11
Information and Communication Technology (ICT)  12
Grade Level
 1st Quarter
Specialization Quarter:
 2nd Quarter
 3rd Quarter
 4th Quarter
Subject: Java Programming Subject Code: CP1212
Teacher: Ms. Ruth Tarraya Week(s) Covered: Week 8
DO NOT FORGET TO SAVE YOUR FILE AS:
<lastname_coursecode_section_WeekNo_quarter_ActivitySheetNo.docx> Example: delacruz_CP1212_ICT2MA_Week1_1stQuarter_ACTS1.docx
* You may write below this line.

AICS – SHS Department/TVL-ICT Academic Department Page 1 of 1 /mlcds


CLASS DIAGRAM
<<Card>>
-CardNumber:String
-CardHolderName: string
-CardExpire:date
-PinCode:int

<<Bank>>
owned by
+name: string <<Customer>>
+Bankcode: inr
-Name:string
+getBankCode():int -eMail: string
+addATM(): bool -Phone:int
+collectAccount(): string -Address: string
+createTransaction():
---Belongs to--- bool
◄►
________.�
Transact to
<<ATM>> -----
...,__
<<Screen>> +atmID: int
+showNotif(): bool
+Showoutput: bool
1--------------� ..._ +location: string
.... t------------1..___
....-_ <<Account>>
-Makes-
..._ -VerifyUser:() bool
---�+withdraw(): bool -AccNumber:int
....,. +checkBalance(): bool -Balance:float
+deposit(): bool -Savings:float
-Credit:float
<<Keypad>> ◄► ◄►◄► ◄►
-getinput(): string -getBalance():float
-getsavings():float
<<Transaction>> -getCredit():float
-transactionHistory: string 'l
-insertPin: int
<<Printer>> -VerifyPin: bool i----update---
+printReceipt(): bool -getTransactionHistory: string
-GetinsertPin: int
-VerifyPin: bool

<<Card Reader>>
-getAccountData():
bool �BelongsBelongs to to Belongs to
Belon s to
+authenticatecard():
bool

<<Deposit Slot>>
+totalCash(): double <<Deposit>> <<Pay Bills>> <<Transfer>> <<Withdraw>> <<Check Balance>>
+detectFake:bool
....,_ +amount: int +amount: float -RecepientNo : int +amount: int Balanceinfo: float
+VerifydetectFake():bool +SenderNo: int
+countCash(): int +getAmount(): int +getAmount(): float +Amount: float +getAmount(): int getBalanceinfo():
float
+getAmount(): float
<<Cash Dispenser>> -getRecipientNo: int
+totalWithdrawPaper():
int

+withdrawcash: int
Aut omat ed Tel l er Machine
Ver if ied
Inser t
Car d
<<I ncl ude>>
Deny Access
<<ext end>>
Ent er PIN

Check
Bal ance

Bank
Cust omer
Tr ansf er
<<I ncl ude>>

<<incl ude>>
Wit hdr aw
<<I ncl ude>>
<<ext end>> Ver if y Cash Fund
(Ent er PIN)
Exceeded Amount
Pay f r om or Insuf f icient Fund
Check Savings

<<I ncl ude>>


<<Ext end>>

Pay BILLS
<<Include>>

Deposit

Niño Anthony Visaya IC2DC Use Case Diagram


1. Insert card
3. PIN Entered
6 Select Withdraw SEQUENCE DIAGRAM:
WITHDRAW
7 Select Amount
12 : Entered PIN

ATM
2. Request PIN
11: Request Pin
14 Cash Dispense
15- Print Receipt
16: Card Eject
Customer

5. PIN Verified
9.Balance Sufficiency Checked 13.Request Money
Processed
10. Request Money to Withdraw

4. Verify PIN
8 Check if Balance is Enough

Account Bank
1. Insert card
3. PIN Entered
6 Select Deposit
7 Select Amount
SEQUENCE DIAGRAM:
9. Customer Puts
money on the slot
DEPOSIT
12. Eject card

ATM

2. Request PIN
8. Request to Put Money into Deposit Slot

Customer

5. PIN Verified
11. Show Added Money

4. Verify PIN
10. Add Money To Account

Account Bank
1. Insert card
3. PIN Entered
6 Select Pay Bills
8. Select Service
SEQUENCE DIAGRAM:
Provider
10. Type the Total
PAY BILLS
Amount
12.Type Pin Code

ATM
2. Request PIN
7. Request to Select Service Provider
9. Request Total Amount
11. Request PIN CODE
16. Print Receipt
Customer 17. Eject Card

5. PIN Verified

14. Process Complete 13.Process Payment

4. Verify PIN
15. Deduct Money

Account Bank
1. Insert card
3. PIN Entered
6 Select Balance
Inquiry
SEQUENCE DIAGRAM:
8.PIN Entered BALANCE INQUIRY

ATM
2. Request PIN
7. Request PIN
10. Print Balance
11. Eject Card
Customer

5. PIN Verified
9. getDataBalance

4. Verify PIN

Account Bank
1. Insert card
3. PIN Entered
6 Transfer Funds
8. Amount Typed
SEQ
SEQUEN
ENCE
CE DIAG
DIAGRAM:
RAM:
10. recipient No.
Entered
TRANSFER FUNDS
13.PIN Entered

ATM
2. Request PIN
7. RequestAmount
9. Type recepient No.
12. Request PIN
17. Print Receipt
Customer 18. Card Eject

5. PIN Verified
11. Balance Enough
15. Transfer Completed
14. Process Transfer
4. Verify PIN
10. Check if Balance is Enough
16. Deduct to Account

Account Bank
Customer ATM Bank Server Account

Insert Card
Verify Card

Alternative
Card Verified
[If Card is
Valid] Enter PIN

[Else]
Invalid
Eject Card

Enter PIN
Verify PIN
Alternative
PIN Verified
[If PIN is
Valid]
Redirect to Service Menu

[Else] PIN is Incorrect


Eject Card

Select Services

Alternative
[If Selected Enter Amount
Withdraw]

[Else If Selected
Savings Info
Check Balance]

View and Print Info

[Else If Selected
Enter Recipients Card Number
Transfer Funds]
Enter Amount to Send

[Else if Selected
Pay Bills]
Select Service Provider
Enter Amount to Paid

[Else If Selected
Deposit] Enter Amount to Insert
Insert Cash

[Else]
Eject Card

Start Transaction
Balance Enough?

Alternative
[If Balance Enough Balance
Enough]
Process Transaction
Complete Transaction

[Else]

Transaction Not Enough Balance


Unsucessful

Alternative
[If Withdraw
Option Selected] Despense Cash

Print Receipt

[Else]

Eject Card
SEQUENCE DIAGRAM
Customer ATM Bank Server Account

Insert Card

Verify Card

Yes

Eject card No

Enter Pin Verify PIN


Code

Eject
No Yes
Card
Service
Cancel Menu
Transaction

Else
choice=
Eject Enter
Card Deposit Insert
Amount
Money
Withdraw Check
Transfer Pay Bills Balance
Funds
View and
Enter
Print
Amount

Print

Select Amount
Service
Provider
Recipient
No.

Amount

Enough
Balance

Unsuccessful No
Transaction

Insert PIN

Yes

Yes

No Sucessful
Transaction

Cancel
Transaction

If withdrawal Option
Dispense
Cash

Eject
Card

Eject Else
Card

ACTIVITY DIAGRAM

You might also like