Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Semester 1, 2019/20
Tutorial 4 Use Cases
2. Do you know that it costs a lot of money to get a “Certified Systems Modeling
Professional” certificate? It could cost you thousands of ringgit.
Let’s imagine you will develop a browser-based training system to help people
prepare for such a certification exam.
A user can request a quiz for the system. The system picks a set of questions
from its database, and compose them together to make a quiz. It rates the
user’s answers, and gives hints if the user requests it.
In addition to users, you also have tutors who provide questions and hints. And
also examinators, who must certify questions to make sure they are not too
trivial, and that they are sensible.
Make a use case diagram to model this system. Work out some of your use
cases. Since you do not have real stakeholders here, you are free to fill in
details you think is sensible for this example.
Answer:
Browser-based training system
<Extend>
Request quiz Request a quiz
User
<Include>
Provide questions Certify questions
& hints
Tutor
Examinator
1
3. Suppose you want to develop software for an alarm clock.
The clock shows the time of day. Using buttons, the user can set the hours and
minutes fields individually, and choose between 12 and 24-hour display.
It is possible to set one or two alarms. When an alarm fires, it will sound some
noise. The user can turn it off, or choose to ’snooze’. If the user does not
respond at all, the alarm will turn off itself after 2 minutes. ’Snoozing’ means to
turn off the sound, but the alarm will fire again after some minutes of delay.
This ’snoozing time’ is pre-adjustable.
Answer:
4. Please find the actor/s, use cases and relationships of below exercises
(extends and includes)
a) Consider an online flight booking system. A user will search for an available
flight time and book the flight if desired. The user will be able to check if there
is any seat available, either when searching or booking a flight.
Answer:
User
Search available
flight
2
b) Consider an online selling / buying website. The website requires the seller
and buyer to register their bank account information. A separate process will
be called if the bank account is unacceptable.
Answer:
<Extend>
Register bank Deny bank
Seller account
account
Buyer
<Include>
Enroll university Enroll seminar
Student
The faculty
3
5. Please find the actor/s, use cases and relationships of below exercises
(generalization)
a) Consider an online bookstore website. The customers can search a book on
the bookstore website. There are three different searches that the customers
can perform: search by author, search by title and search by author and title.
Answer:
Online bookstore website
Customer
Search by
Author
Search by
Author & title
4
c) Consider an air ticket booking system, “Business Traveler” and “Tourist" are
passengers that can buy ticket online. The "Business Traveler" is able to
"Redeem Business Miles" while the "Tourist" cannot.
Answer:
Passenger
Redeem
business miles
Tourist Business
Traveler
6. Read the interview transcript carefully and answer questions 3(a) and 3(b).
Mick Perez: So you’re saying that car sharers will be able to register by telephoning
the office and speaking to someone there who will enter their details into the system.
Janet Hoffner: Yes. Either the franchisee, or more likely one of the office staff will
take the call and enter the details into the computer.
MP: who are the office staffs?
JH: Well, there are one or two clerks, a receptionist and a supervisor. They all have
a role in administration in the system.
MP: What will they be entering?
JH: Oh, the person’s name and address, details of the journey they want to share,
any preferences they have such as being a non-smoker.
MP: Is that they only way that this information will get into the system?
JH: No, it could also be transferred in from the national web-server.
MP: How will this information be used?
JH: Two ways. Firstly, it will be used to match up potential car sharers, and
secondly, it will be used to produce a management report for the franchisee showing
the number of registrations per week, whether they come from the web-server or by
telephone and breaking down by area.
5
Questions:
a. Identify all the possible actors and use cases.
b. Draw a use case diagram describing the main functions of the
CarMatch system.
Answer:
Transfer car
sharers info
Franchise
Add car sharer
info
6
7. Read the case study below carefully and answer question (a)
Question:
a. Draw a use case diagram for the online conference management
system.
Answer:
Online conference management system
Submit conference
paper
Author Login
Set schedule
Assign paper
to review
Program Chair
Decide acceptance
Update paper
status
Reviewer
Review paper 7