ASSIGNMENT-02-SE Compiler Design Compiler Construction Notes
ASSIGNMENT-02-SE Compiler Design Compiler Construction Notes
Question # 01 (CLO 2)
A use case diagram is used in the software development process for the following
reasons:
1. Visual Representation of Requirements: It provides a visual representation of
the functional requirements of the system, showing how users (actors) interact
with the system.
2. Identify System Functionality: It helps in identifying the key functionalities of
the system and the interactions between users and the system.
3. Communication Tool: It serves as a communication tool between stakeholders
(e.g., developers, clients, and end-users) to ensure a common understanding of the
system's behavior.
4. Scope Definition: It helps in defining the scope of the system by outlining what is
included (and excluded) in the system.
5. Requirement Analysis: It aids in requirement analysis by breaking down
complex processes into simpler use cases.
6. Foundation for Testing: It provides a foundation for creating test cases by
identifying all possible scenarios of user interaction.
• Actors:
o Patient: The primary user who interacts with the insulin pump.
o Doctor: A medical professional who configures and monitors the pump.
o Nurse: Assists the patient and monitors the pump.
• Use Cases:
o Deliver Insulin: The pump delivers insulin based on the patient's glucose
levels.
o Monitor Glucose Levels: The pump continuously monitors the patient's
glucose levels.
o Configure Pump Settings: The doctor or nurse configures the pump
settings (e.g., insulin dosage).
o Alert for Low/High Glucose: The pump alerts the patient or nurse if
glucose levels are too low or high.
o Battery Check: The pump checks and alerts when the battery is low.
• Actors:
o Student: A user who takes courses on the platform.
o Instructor: A user who creates and manages courses.
o Admin: Manages the platform and user accounts.
• Use Cases:
o Enroll in Course: A student enrolls in a course.
o Take Assessment: A student takes quizzes or exams.
o Create Course: An instructor creates a new course.
o Upload Content: An instructor uploads course materials.
o Manage Users: An admin manages user accounts (e.g., add/remove
users).
o Generate Reports: An admin generates reports on platform usage.
Question # 02 (CLO )
The Mentcare case study involves a system for managing mental health care. Below is a
structured specification for a requirement:
• Requirement ID: MC-001
• Requirement Title: Patient Registration
• Description: The system shall allow healthcare providers to register new patients
in the Mentcare system.
• Actors: Healthcare Provider (Doctor/Nurse)
• Preconditions:
o The healthcare provider must be logged into the system.
o The patient must not already be registered in the system.
• Postconditions:
o The patient's details are stored in the system.
o A unique patient ID is generated.
• Functional Requirements:
o The system shall capture patient details (e.g., name, age, contact
information, medical history).
o The system shall validate the entered data for accuracy and completeness.
o The system shall generate a unique patient ID upon successful registration.
• Non-Functional Requirements:
o The system shall ensure data security and confidentiality.
o The registration process shall be completed within 2 minutes