Professional Documents
Culture Documents
Csc186topic 2 - Part1
Csc186topic 2 - Part1
1
CSC186 OBJECT ORIENTED PROGRAMMING| edited from Zamlina Abdullah
LESSON OUTCOMES
2
Upon completion of this chapter, students should be able to:
What?
Why?
Where?
UNIFIED MODELLING LANGUAGE -
INTRODUCTION (CONT…)
• What?
• A modeling language for visualizing, specifying,
constructing and documenting the artifacts of a
software system.
• Why?
• UML is a industry standard modeling language.
• Where?
• Design phase (most of the time).
5
USE CASE DIAGRAM
URS
add member
del member
assg subject
unass subject
unenrol subject
10
USE CASE DIAGRAMS COMPONENT
<<includes>>
Close Machine
<<extends>>
Restock According
to Sales
USE CASE – EXAMPLE (SELF SERVICE
MACHINE – GENERALIZE RELATIONSHIP):
15
ACTOR-TO-ACTOR RELATIONSHIP
generalized actor
Supplier Agent
specialized
actor
Restocker Collector
USE CASE DIAGRAM( EXAMPLE 2)-
16 LIBRARY SYSTEM
library system
borrow
client employee
reserve
Order title
Fine payment
supplier
USE CASE DIAGRAM(EXAMPLE 3) - STUDENT
17
GRADING SYSTEM
Grade system
Record
grades
Student
View grades
Teacher Distribute
Report cards
Create report
cards
Printing administrator
18 EXERCISE
The Khazanah Alam Sdn. Bhd. will organized the 5km fun run. The registration
of this fun run is free and the runner also entitled for free t-shirt. This
company request a system named Fun Run Management System(FRMS). This
system will allow a runner to do a self registered for 5km fun run by filling
their personal detail and t-shirt size. The organizer will shortlisted the detail
of the runner for administration purposes and it can be view by the runner. A
list of shirt quantities by size will be sent to the t-shirt supplier for the
ordering process. Write the use case diagram for the given requirements.
This use case diagram will identify the possible actor and use cases will be
involve in the FRMS.(This exercise is not involve the relationship element)