9618 - Computer Science
Find Entity - Attributes - Draw ERD
1. Hospital Management System
A hospital is transitioning to a digital management system to streamline its operations. The system should keep
track of all patients, including their personal details (e.g., name, address, contact number, and date of birth).
Doctors are assigned to different departments, such as Cardiology, Pediatrics, and Orthopedics. Each doctor has
a unique ID, name, specialization, and contact details. A doctor can treat multiple patients, and each patient may
consult multiple doctors during their treatment.
Patients can book appointments with doctors, and the system should capture details like appointment date, time,
and purpose. After each consultation, the doctor provides a prescription, which includes the prescribed medicines,
dosages, and duration. The system also needs to store the patient’s medical history for future reference.
2. Library Management System
A city library wants to manage its inventory and memberships using a digital system. The library owns thousands
of books, each identified by a unique ISBN. Books have attributes such as title, author(s), publisher, genre, and
publication year. Some books may have multiple copies available.
Members of the library can borrow books. Each member has a unique membership ID, along with their name,
address, contact information, and membership expiry date. A member can borrow multiple books, but each book
can only be borrowed by one member at a time.
The system should also keep track of the borrowing details, such as the date a book is borrowed, the due date,
and whether the book has been returned. Late returns incur a fine, which should be calculated and recorded.
3. Online Shopping Platform
A popular e-commerce platform wants to develop a backend system to manage its operations. The platform sells
various products, each with attributes such as name, description, price, stock quantity, and a category (e.g.,
electronics, clothing, home appliances).
Customers can create accounts with their details, including name, email, phone number, and address. They can
place orders, and each order can include multiple products. For each product in an order, the system must record
the quantity purchased and the total price.
Orders also need to track the order date, payment status (paid/unpaid), delivery address, and delivery status
(pending, shipped, delivered). The system should support multiple payment methods, such as credit cards, digital
wallets, and cash on delivery.
9618 - Computer Science
4. University Enrollment System
A university wants to manage its student enrollment process through a comprehensive digital solution. The system
must store information about students, including their name, date of birth, gender, contact details, and program of
study (e.g., Bachelor’s in Computer Science). Each student is assigned a unique student ID.
The university offers various courses, and each course has details such as course code, name, credit hours, and
the professor assigned to teach it. Professors also have a unique ID and details such as name, qualification,
department, and contact information.
Students can enroll in multiple courses, and the system should track which students are enrolled in which courses.
Grades are assigned to students for each course, and these grades must be stored for academic records. A
student’s enrollment in a course also records the semester and year.
5. Hotel Management System
A luxury hotel is developing a system to manage its bookings and operations. The hotel has a variety of rooms,
each identified by a unique room number. Rooms have attributes like type (single, double, suite), price per night,
and availability status.
Guests can book rooms for a stay. Each booking must include the guest’s personal details (name, contact number,
and address), check-in date, check-out date, and the total number of guests. A guest can make multiple bookings
over time.
The hotel also offers additional services such as room service, laundry, and spa facilities. These services can be
availed during the stay and are billed to the guest’s booking. The system should record the type of service, date of
service, and associated cost.
These scenarios encourage students to analyze the relationships between entities and design comprehensive
ERDs. Let me know if you’d like further modifications or additional scenarios!