(i) State Diagram – Online Banking System
Assumption: The diagram represents the user/account session.
[Start]
|
v
Logged Out
|
| Login (Valid Credentials)
v
Logged In
|
| Select Operation
v
Transaction Selection
| | |
| | |
View Balance Fund Transfer Bill Payment
| | |
| | |
---------|---------|
|
v
Transaction Processing
|
| Success
v
Transaction Completed
|
| Logout
v
Logged Out
|
v
[End]
Exceptional States:
- Invalid Login → back to Logged Out
- Transaction Failure → back to Transaction Selection
- Session Timeout → Logged Out
(ii) State Diagram – Online Examination System
Assumption: The diagram represents the student exam session.
[Start]
|
v
Not Logged In
|
| Login (Valid Credentials)
v
Logged In
|
| Exam Available
v
Exam Instructions
|
| Start Exam
v
Exam In Progress
|
| Answer Questions
|
|----------------------|
| |
v v
Pause Exam Time Expired
| |
| Resume |
v |
Exam In Progress |
| |
| Submit Exam |
v v
Exam Submitted --------> Auto Submit
|
| Evaluation
v
Result Generated
|
| Logout
v
Logged Out
|
v
[End]
Exceptional States :
- Invalid Login → Not Logged In
- Network Failure → Paused Exam
- Malpractice Detected → Exam Terminated

Leave a Reply