Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

REPUBLIC OF CAMEROON REPUBLIQUE DU CAMEROUN

Peace – Work – Fatherland Paix – Travail – Patrie


…………………………… …………………………..
UNIVERSITY OF BAMENDA ECOLE NORMALE SUPERIEURE DE L’ENSEIGNEMENT
TECHNIQUE DE BAMBILI – BAMENDA
…………………………………
……………………………………………………
HIGHER TECHNICAL TEACHER TRAINING
DIVISION DE LA FORMATION ET DE
COLLEGE (H.T.T.T.C) BAMBILI – BAMENDA
L’ORIENTATION
………………………..
………………………………………………..
DIVISION OF TRAINING AND ORIENTATION
SERVICE DE LA FORMATION ET DES
………………………………….
STAGES
SERVICE FOR TRAINING AND INTERNSHIP
…………………………………………………
………………………………..
FAX / 33 05 10 69
P.O BOX 39 BAMBILI TEL: 33 36 36 94

DEPARTMENT PRACTICING SCHOOL


COMPUTER ENGINEERING COLTECH
OPTION
COMPUTER ENGINERING

PRACTICAL PEDAGOGIC
EXAMINATION

SUBJECT: COMPUTER SCIENCE


NATURE OF LESSON: PRACTICAL
LESSON TITLE: USE CASE DIAGRAM
DURATION OF LESSON:2 HOURS
STUDENT TEACHER: LONTTI AWASUME CYRILLE
CO-OPERATING TEACHER: Mr. SWI INNOCENT

JURY
PRESIDENT
RAPPORTEUR
MEMBER 1
MEMBER 2

DATE: Tuesday, February 18th 2020


LESSON PREPARATION FORM

SUBJECT: COMPUTER SCIENCE CLASS: Level 200 ENROLMENT 03


TEACHER’S NAME: Lontti Awasume Cyrille
SCHOOL: COLTECH-HND
TOPIC: UML Diagrams.

LESSON TITLE: Use Case Diagram .

DURATION OF THE LESSON: 2 hours


POSITION OF LESSON WITHIN THE SCHEME: This lesson comes after the lesson on Object Modelling
Techniques .
PREVIOUS KNOWLEDGE (Pre-requisite) : Students have knowledge on Object Modelling Techniques and
UML basis.
KEY IDEAS Definition of Use Case diagram, purpose of Use case diagram, Steps to draw a Use case
diagram, Application Exercise
. .
NEW VOCABULARY: Use Case, Actor, Relationship, Extends, Include, System boundary.
.
OBJECTIVES LESSON
Domain (Cognitive, Operational Pedagogic
Level Teaching Strategies
Affective, Psychomotor ) Objectives
Cognitive knowledge Define Use Case diagram Discussion
and give its uses
List elements of a Use Discussion
Case diagram
Psychomotor Reproduction Draw a Use case diagram Guided work

DIDACTIC MATERIAL:
Chart, Blackboard, Computer ( with PowerAMC installed).

REFERENCES
Unified Modeling Language
http://en.wikipedia.org/wiki/Unified_Modeling_Language
UML basics: The Use Case Diagram
http://www.ibm.com/developerworks/rational/library/dec04/bell/
LESSON WORKING SHEET
DIDACTIC
STAGES DURATION TEACHING/LEARNING ACTIVITIES FORMATIVE EVALUATION
MATERIALS

 Obtain the attention of the students - Attendance


- Students have
 Revise previous knowledge sheet

Introduction
understood the
 Correction of assignment - Chart
INTRODUCTION 20 mins previous lesson and
 Present the objectives of teaching and learning are set for the new
- Blackboard
 Activate previous knowledge lesson
 Placing the learners under learning situation or `
good state or frame of mind
 Teacher defines use case diagram - Students can define
 Teacher gives the purpose of a use case diagram and give the purpose - Computer
 Teacher demonstrates how to draw a use case of a Use Case diagram
- Chart
diagram
 Teacher gives an example of a system and draws a - Students can list the
Development

PRESENTATION use case diagram elements of a use case


1h 40 mn  Teacher verifies the understanding of learners diagram
 Learners ask questions to better understand
 Teachers answers questions and clarifies doubts - Students can draw a
 Teacher gives feedback use case diagram for a
 Teacher gives an application exercise given system
 learners draw a use case diagram
 Teacher corrects and appreciate

 Control the attainment of achievement of the - Objectives have been - Log book
objectives of the lesson attained
CONCLUSION  Follow up individual performance of the learner
Conclusion

 Summaries essential points and announce the


20 mins
next lesson

 Give assignment
CONSOLIDATION
 Announces title of the next lesson
PLAN OF THE LESSON WORKING ZONE VOCABULARY

- Review of previous Tuesday, February 18 2020


knowledge  Use Case
COMPUTER SCIENCE
- Correction of Assignment  Actor
1. Introduction  Relationship
2. Definition of Use Case  Extends
diagram  Include
3. Purpose of Use Case
 System boundary
Diagram
4. Steps to draw a Use Case
diagram

5. Example of a Use Case


diagram

6. Application Exercise

7. Consolidation Exercise
Lesson objectives

By the end of this lesson, students should be able to:

- Define and give the purpose of a use case diagram


- List the elements of a use case diagram
- Draw a use case diagram for a given system

1. Introduction

To model a system, the most important aspect is to capture the dynamic behavior. Dynamic
behavior means the behavior of the system when it is running/operating. Only static behavior
is not sufficient to model a system rather dynamic behavior is more important than static
behavior. In UML, there are five diagrams available to model the dynamic nature and use case
diagram is one of them. Now as we have to discuss that the use case diagram is dynamic in
nature, there should be some internal or external factors for making the interaction.
These internal and external agents are known as actors. Use case diagrams consists of actors,
use cases and their relationships. The diagram is used to model the system/subsystem of an
application. A single use case diagram captures a particular functionality of a system.
Hence to model the entire system, a number of use case diagrams are used.

2. Definition: Use Case Diagram


Use case diagrams are a set of use cases, actors, and their relationships. They represent the use
case view of a system. A use case represents a particular functionality of a system. Hence,
use case diagram is used to describe the relationships among the functionalities and their
internal/external controllers. These controllers are known as actors.

3. Purpose of Use Case diagram


In brief, the purposes of use case diagrams can be said to be as follows −
 Used to gather the requirements of a system.

 Used to get an outside view of a system.

 Identify the external and internal factors influencing the system.

 Show the interaction among the requirements are actors.

5
4. How to Draw a Use Case Diagram?
Use case diagrams are considered for high level requirement analysis of a system. When the
requirements of a system are analyzed, the functionalities are captured in use cases.
We can say that use cases are nothing but the system functionalities written in an organized
manner. The second thing which is relevant to use cases are the actors. Actors can be defined
as something that interacts with the system.
Actors can be a human user, some internal applications, or may be some external applications.
When we are planning to draw a use case diagram, we should have the following items
identified:
 Functionalities to be represented as use case

 Actors

 Relationships among the use cases and actors.

Use case diagrams are drawn to capture the functional requirements of a system. After
identifying the above items, we have to use the following guidelines to draw an efficient use
case diagram:

 The name of a use case is very important. The name should be chosen in such a way
so that it can identify the functionalities performed.
 Give a suitable name for actors.

 Show relationships and dependencies clearly in the diagram.

 Do not try to include all types of relationships, as the main purpose of the diagram is
to identify the requirements.

 Use notes whenever required to clarify some important points.

5. Example of a Use Case Diagram

The following is a use case describing a Hospital Reception System. Hence, if we look into
the diagram then we will find nine use cases (Schedule patient Appointment, Schedule
Patient Hospital Admission, Patient Registration, Patient Hospital Admission, File

6
Insurance Forms, File Medical Reports, Outpatient Hospital Admission, Inpatient
Hospital Admission and Bed Allotment) and one actor which is the Receptionist.

Schedule patient Appointment and Schedule Patient Hospital Admission are extended from
Patient Registration. Hence, they have extended relationship.

Patient hospital admission includes Patient Registration as a patient must be registered first
before he/she can be admitted, hence the have a direct relationship. Also, Inpatient Hospital
Admission includes Bed Allotment

Another important point is to identify the system boundary, which is shown in the picture.
The actor Receptionist lies outside the system as it is an external user of the system.

Figure 1: Use Case diagram of a Hospital Receptionist

6. Application Exercise

Consider the following required functionality of an online DVD shop:


Customers should be able to search for DVDs by Title and Category (some examples of
categories are: Series, Movies, Music). Once they find a product they like, they can add a
DVD to their shopping cart. This requires that they are logged in, therefore if they do not
yet have an account, they should be able to create one. When creating an account, a
username and password should be chosen, and optionally, they can enter their home

7
address and/or the credit card information they want to use for paying. Credit card
information consists of the name on the credit card, the credit card company, the credit
card number, and the expiration date.
They can add as many DVDs to the shopping cart as they want, and they can also remove
DVDs. If they decide at some point to check out the shopping cart, then they are asked to
check the shipping address and credit card information supplied, and if either of those was
not supplied, they are asked to supply it. Next, they can review the contents of the
shopping cart, and if they agree, they can send the order. Then, the credit card information
is sent to the bank, and, if approved, the order is finalized. If the information was not
approved, then the customer is made aware of this, so he/ she can change the payment
option.
A delivery agent can check the status of online orders, and process an order, meaning that
it changes its status from “pending” to “delivered”.

Finally, the administrator is responsible for the DVD inventory. She can check the current
inventory, order new DVDs from the supplier, and add DVDs to the inventory.
a. Create a UML Use Case Diagram for the online DVD shop. In addition, give a detailed
description (pre-condition, post-condition, main scenario,…) of the use case for “check out
shopping cart”.

b. Based on your use case description of “check out shopping cart”, create a UML Sequence
Diagram.

c. Create a UML Activity Diagram to depict the business process for processing a DVD order.
There are three parties involved in processing an order: Shipping, Online Sales, and
Accounting. The process starts when Online Sales receives an order for DVDs from a user. To
complete the order, the store needs to charge the credit card and deliver the DVDs. To charge
the card, Online Sales sends the credit card information to Accounting, who will then validate
and process the credit card. To deliver the DVDs, Shipping will first fill the order, then
prepare the package, and finally deliver it. Once the DVDs are delivered and the credit card is
charged, the order is closed.
 Solution

8
ONLINE DVD SHOP

Manage inventory check current inventory


Administrator Supplier
<<extend>>

confirm order
order new DVD
<<extend>>

supply DVD
<<extend>>
Add DVD to inventory

Log in <<include>>
Verify password and userame
<<extend>>

Create account
Add DVD
costumer
<<extend>>
Remove DVD
Search for DVDs

Check shipping address

<<extend>>

Check out shopping cart <<extend>>


<<extend>>
Check credit card info

<<extend>>

<<extend>>
Change payment mode
Order DVD

Review details

Recieve order

delivery agent
Check status order

<<include>>
send credit card info to bank Process order

Deliver order <<include>>

Figure 2: Use Case diagram of an online shopping cart

9
7. Assignment
Draw a Use Case Diagram for a Credit card processing system.
Purpose: Define major use cases for a credit card processing system (credit card payment
gateway).
Summary: The merchant submits a credit card transaction request to the credit card payment
gateway on behalf of a customer. Bank which issued customer's credit card is actor which
could approve or reject the transaction. If transaction is approved, funds will be transferred to
merchant's bank account.

 Solution

10

You might also like