Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

VISIT ANY MORE FREELY SOLUTIONS

VUAnswer.com

CS504 ASSIGNMENT 2 SOLUTION FALL 2021


Provide by VU Answer

Due Date: 29 Dec 2021


Total Marks: 20

Uploading Instruction:
Submit your assignment solution in doc/docx file format only.

Question 1:
You are required to identify inherited classes for the following “User” class of
the “Doctor Patient Portal” using the concept of inheritance in Object
Oriented Programming.

Solution:

SUBSCRIBE OUR CHANNEL


https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
WMIg3Q

JOIN WHATSAPP GROUP


https://chat.whatsapp.com/IF8sHHq2GYz8BJwG9XEJB1
VISIT ANY MORE FREELY SOLUTIONS

VUAnswer.com

Class Name Subclasses

1. Admin
2. Doctor
User Inherited Classes 3. Patient

Question 2:
Keeping in view the Functional requirements for “Doctor Patient Portal”.
Identify major operations for “Patient” class.

Solution:

1. searchDoctor();

2. viewDoctorTimetable();
Patient class Operations
3. bookAppointment();

4. cancelAppointment();

SUBSCRIBE OUR CHANNEL


https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
WMIg3Q

JOIN WHATSAPP GROUP


https://chat.whatsapp.com/IF8sHHq2GYz8BJwG9XEJB1
VISIT ANY MORE FREELY SOLUTIONS

VUAnswer.com

Question 3:
Keeping in view the Functional requirements for “Doctor Patient Portal”.
Identify major operations for “Doctor” class.

Solution:

Doctor 1. checkUpcomingAppointment();
Operations
class 2. viewPatientMedicalHistory();

Question 4:

Given the class User, which is identified as a low cohesive class, you are
required to create a highly cohesive class(es) out of this class comprising
of all essential elements: class name, attributes, and operations.

Solution:

SUBSCRIBE OUR CHANNEL


https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
WMIg3Q

JOIN WHATSAPP GROUP


https://chat.whatsapp.com/IF8sHHq2GYz8BJwG9XEJB1
VISIT ANY MORE FREELY SOLUTIONS

VUAnswer.com

Admin Doctor
String AdminName; String DoctotName;
Int AdminAge; Int DoctorAge;
String AdminGender; String DoctorSpecialization;

addRecords(); viewPatientHistory();
UpdateRecords(); viewScheduledAppointments();

SUBSCRIBE OUR CHANNEL


https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
WMIg3Q

JOIN WHATSAPP GROUP


https://chat.whatsapp.com/IF8sHHq2GYz8BJwG9XEJB1
VISIT ANY MORE FREELY SOLUTIONS

VUAnswer.com

REGARD SARIM
WHATSAPP +923162965677

PLEASE NOTE:
Don't copy-paste the same answer.
Make sure you can make some changes to your solution file
before submitting copy paste solution will be marked zero.
If you found any mistake then correct yourself and inform me.
Before submitting an assignment check your assignment
requirement file.
If you need some help and question about file and solutions.

MORE ANY ASSIGNMENTS SOLUTION FREE


VUAnswer.com

SUBSCRIBE OUR CHANNEL


https://www.youtube.com/channel/UCvFS8fAv4bvZsOmWu
WMIg3Q

JOIN WHATSAPP GROUP


https://chat.whatsapp.com/IF8sHHq2GYz8BJwG9XEJB1

You might also like