Abhinav 11232509 3A1
Practical No. 02
Aim: Create Use Case ,Class and Object Diagram of Hostel Room Management System.
Use Case Diagram
A use case diagram is a visual representation used in software engineering and systems analysis
to capture and illustrate the functional requirements of a system. It shows the interactions
between users (actors) and the system itself through various use cases.
The diagram represents the use case for a University Hostel Room Management System.
Actors:
Students: A student residing in a hostel.
Admin: A administrator responsible for managing the hostel.
Use Cases
Maintain Student Details: The admin can maintain student details like name, ID, etc.
Maintain Fee Details: The admin can maintain fees details for students.
4
MMEC,Mullana
Abhinav 11232509 3A1
Check/view the Room Allotment: The admin can check or view the room allotments
for students.
Allot Rooms to the Students: The admin can allot rooms to students.
Generate Bill: The admin can generate bills for students for their hostel stay.
Maintain Mess details: The admin can maintain details about the mess in the hostel.
Maintain the monthly mess bill: The admin can maintain the monthly mess bill for the
students.
Enter warden details: The admin can enter details about the hostel warden.
Maintain warden details: The admin can maintain warden details.
Maintain Students Records: The admin can maintain student records, such as academic
performance.
Maintain Room Status: The admin can maintain the status of rooms, such as occupied
or vacant.
Relationship:
The Student actor uses the "check/view the rooms allotment" use case.
The Admin actor uses all the other use cases.
Class Diagram
A class diagram is a type of static structure diagram used in Unified Modeling Language (UML)
to represent the structure of a system by showing its classes, their attributes, methods, and the
relationships among the classes. It is a fundamental tool in object-oriented design and is used to
define the blueprint for system components and their interactions.
This is a class diagram representing a database schema for a hostel management system.
5
MMEC,Mullana
Abhinav 11232509 3A1
Relationship:
Hostel Manager Manages Hostels: One Hostel Manager can manage multiple hostels.
Hostel Contains Room: One Hostel can have multiple rooms.
Room has Bed, Table and Almirah: A room can have one or more of each of these
items.
Room has Double Beds/Triple Beds: A room can have either a double bed or a triple
bed
Purpose: This diagram shows the structure of data about hostels, rooms, students, and associated
furniture items. It provides a visual representation of how these entities are related and can be
used to design the database schema for the hostel management system.
Object Diagram
An object diagram is a type of diagram used in software engineering to visualize the static
structure of a system at a specific point in time. Unlike class diagrams, which show classes and
their relationships, object diagrams depict instances of classes (i.e., objects) and their links to one
another.
This diagram shows the structure of data about hostels, rooms, students, and associated furniture
items.
6
MMEC,Mullana