Capturing Requirements Through
Use-Cases
Examples from the
‘BUET course registration, coursework,
exam and result processing system’
1
Actors
• Student • Exam Controll office
• Adviser Data Entry Clerk
• Provost • Registrar office Clerk
• Hall Clerk • Bank
• Teacher • Parents
• Lab Attendant • BUGS
• Head • Academic council
• Dean • Session Committee
• VC
• Exam Controller
• Registrar
2
Subsystems
• Registration Subsystem
• Coursework Subsystem
• Exam Subsystem
• Result Subsystem
3
Use-Cases for Registration Subsystem
Use-Case Name Actors
Pay Fee Student, Registrar Office, Bank
Teller, Hall Clerk, Provost
Register Student, Adviser
Prepare Student List Registrar Office
View Student List Teacher, Lab Attendant, Exam
Control Office
4
Use-Cases for Coursework Subsystem
Use-Case Name Actors
Assign Teacher BUGS, Teacher
Prepare Routine Routine Committee, BUGS
Send Routine Routine Committee, Head
View Routine Student, Teacher, Lab Attendant,
Others
Attend Class Student, Teacher
Take Class Test Teacher
Sit for Class Test Student
Update Class Test Marks Teacher
View Class Test Marks Student, Head
5
Use-Cases for Coursework Subsystem
Use-Case Name Actors
Issue Instrument Student, Lab Attendant
Return Instrument Student, Lab Attendant
Post Notice Teacher, Head
View Notice Teacher, Student
6
Use-Cases for Exam Subsystem
Use-Case Name Actors
Assign Examiner BUGS, Teacher
Assign Question Scrutinizer BUGS
Assign Scrutinizer BUGS
Set Question Teacher
Scrutinize Question Teacher, Head
Print Question Exam Control Office
Set Schedule Exam Control Office
View Schedule Student, Teacher, Others
Propose change in schedule Student, Teacher
7
Use-Cases for Exam Subsystem
Use-Case Name Actors
Update Schedule Exam Control Office
Make Sit Plan Exam Control Office
Prepare exam guard schedule Exam Control Office, Teacher
Sit for Exam Student
Guard Exam Teacher, Exam Control Office
Mark Exam Papers Teacher
Scrutinize Teacher
Ask for Re-scrutiny Student, Teacher, Head
8
Use-Cases for Result Subsystem
Use-Case Name Actors
Prepare Grade-sheet Teacher, Head, Exam Control
Office
Update Grades Exam Control Office
Print Result Exam Control Office
Get Result Student, Exam Control Office
Search Result Teacher, Student
Send Result Exam Control Office, Registrar
Office, Parents
9
Use-Case Diagram for Registration Subsystem
System
Prepare
Adviser Student Registrar Office
Register
List
View
Student
Student List Hall
Pay Fee
Teacher Bank
And
LabAttendant 10
Use-Case Diagram for Registration Subsystem
(refined)
Access System
Student’s
Result << includes >>
Registrar Office
Adviser Register
Prepare
Student
List
View
Student Verify
Student List Fee Hall
Calculate
Fee
Pay Fee
Teacher Bank
And
11
LabAttendant
Sample Use Case Narrative
• Name: Prepare Grade-sheet
• Priority: High
• Primary Actor: Teacher, Scrutinizer
• Secondary Actor: Head, Exam Control Office
• Precondition: Exam papers have been checked
and scrutinized
• Trigger: Grade-sheet form arrives from Exam
Control Office
12
Sample Use Case Narrative
• Typical Course of events
1. Teacher calculates the attendance marks for each student
of that course
2. Teacher selects best three class test marks
3. Teacher calculates the total class test marks
4. Teacher takes mark-sheets of section A and section B
5. Teacher finds the total marks and the percentage of
marks
6. Teacher finds the grade and grade point corresponding to
that percentage of marks
7. Teacher fills out the grade-sheet form
8. Teacher signs the form and pass to scrutinizer
13
Sample Use Case Narrative
• Typical Course of events
9. Scrutinizer checks the calculations and the
entries
[Link] signs the form and passes to head
[Link] signs and passes to exam control office
14
Sample Use Case Narrative
• Alternate Course of events:
– 2: A student sat for less than three class tests
– 9: Scrutinizer detects an error
• Conclusion: the filled up grade-sheet form
reaches exam control office
• Post Condition: The grades of all the students
registered for that course have been calculated
and entered correctly
15
Sample Use Case Narrative
• Business Rules:
– Attendance Marks rule
• 90%+ gets 30, … , below 60% gets 0
– Weights
• Attendance – 30
• Class Test – 60
• Section A – 105
• Section B – 105
– A student retaking a course can not get a grade
above B
16
Finding Data
1. Teacher calculates the attendance marks for each
student of that course
2. Teacher selects best three class test marks
3. Teacher calculates the total class test marks
4. Teacher takes mark-sheets of section A and section B
5. Teacher finds the total marks and the percentage of
marks
6. Teacher finds the grade and grade point
corresponding to that percentage of marks
7. Teacher fills out the grade-sheet form
8. Teacher signs the form and pass to scrutinizer
17
Finding Data
1. Teacher calculates the attendance marks for each
student of that course
2. Teacher selects best three class test marks
3. Teacher calculates the total class test marks
4. Teacher takes mark-sheets of section A and section B
5. Teacher finds the total marks and the percentage of
marks
6. Teacher finds the grade and grade point
corresponding to that percentage of marks
7. Teacher fills out the grade-sheet form
8. Teacher signs the form and pass to scrutinizer
18
Finding Data
1. Teacher calculates the attendance marks for each
student of that course
2. Teacher selects best three class test marks
3. Teacher calculates the total class test marks
4. Teacher takes mark-sheets of section A and section B
5. Teacher finds the total marks and the percentage of
marks
6. Teacher finds the grade and grade point
corresponding to that percentage of marks
7. Teacher fills out the grade-sheet form
8. Teacher signs the form and pass to scrutinizer
19
Other sources of data
• Business Rules:
– Attendance Marks rule
• 90%+ gets 30, … , below 60% gets 0
– Weights
• Attendance – 30
• Class Test – 60
• Section A – 105
• Section B – 105
– A student retaking a course can not get a grade
above B
20
Another Example of Use Case Narrative
Use-case name Order Book
Actor Registered User
Priority High
Precondition User should be registered
Description Here registered users can order those books they
want to buy.
Another Example of Use Case Narrative
Typical Course of events:
Registered User System Response
[Link] needs to log in 2. System asks for authentication
[Link] authentication [Link] access for correct information
5. Show books
6. View books
7. Select any book from the list
8. Press buy now button [Link] for address , phone no
[Link] information [Link] for confirmation
[Link] order 13. Save details of the order