Use case diagram and Class Diagram

Hi guys,

I am trying to construct a Use Case Diagram.

I have 3 actors and 4 Use cases:

Three Actors: Customer, ATM and Bank

Four Use Cases:
(1) Deposit money: invoked by Customer and handled by either ATM or Bank
(2) Withdraw money: invoked by Customer and handled by either ATM or Bank
(3) Notify transaction: invoked by ATM and received by Bank
(4) Repair machine: invoked by Bank to repair a problem on ATM

This is what I did: http://i.imgur.com/9QZZVdC.jpg

For Class Diagram. I have: http://i.imgur.com/j5sJlSb.jpg

Can you please let me know if I did them correctly or there is something missing/incorrect.

Three Classes: Employee, Fulltime Staff and Part-time Staff

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  Class Employee:

Attributes:
Name:  String
Address:  String
ID#:      String
SSN:      String

Actions:

reportTax()   Takes no parameters

End Class Employee

Class Fulltime Staff:

Attributes:

Annual salary: float
Health plan: string

Actions:
selectBenefit()   Takes no parameters

End Class Fulltime Staff

 
Class Part-time Staff:

Attributes:
HourlyRate:  float
Weekly hours:  int

Actions:

fillReport()   Takes no parameters

End Class Part-time Staff
Last edited on
Topic archived. No new replies allowed.