0% found this document useful (0 votes)
11 views

Assignment 3

Uploaded by

mushtaqaraen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Assignment 3

Uploaded by

mushtaqaraen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment No.

01 (Graded)

CS304- Object Oriented Programming

Amna Mushtaq

ID bc240410465

QN0.1

Extract the main objects (entities) of above system

Entities:

Donor

Patient

Inventory

Hospital

Admin

2. Attributes and Functions

Donor
Attributes: donor id , name,blood type,contactinfo,donation history,last donation date,
eligibility status

Functions: register(), update profile(),view DonationHistroy(), checkEligibility(),


recive Reminder()

Patient:

Attribvtes: patientID,name,bloodtypeRequirement,medicalHistory,contactinfo,requeststatus

Functions: registerRequest(), updateReques(), biewRequesstatus()


Inventory
Attribvtes: inventoryID, bloodTYPE,quantity, expirationdate

Functions: checkavailability(), updateinventory(), removeexpiredblood()

Hospital

Attribvtes: hospitalID, name location, contactinfo

Functions: biewDonorDetails(), selectDonor(), submitBloodRequest()

Admin

Attribvtes: AdminID.name, contactinfo

Functions: registerDonor(), manageinventory(), handleBloodrequest()

3 Relationships Among Entities:

. Donor 1:M Patient

. Donor 1:M Inventory

. Patient M:1 Admin

. Inventory 1:1 Admin

. Hospital M:1 Admin

. Hospital M:N Donor

. Hospital M:N Patient

You might also like