VU Answer: CS504 Assignment 2 Solution Fall 2021

CS504 Assignment 2 Solution Fall 2021

Provide CS504 Assignment 2 Solution Fall 2021. Easy to Get Complete Perfect Step by Step CS504 Assignment Fall Solution 2021 Download File.


CS504 ASSIGNMENT 2 SOLUTION FALL 2021


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:

Class Name

                                      Subclasses

User

Inherited Classes

1. Admin

2. Doctor

3. Patient

Question 2:

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


Solution:

Patient class

Operations

1. searchDoctor();

2. viewDoctorTimetable();

3. bookAppointment();

4. cancelAppointment();


Question 3:

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


Solution:


Doctor class

Operations

1. checkUpcomingAppointment();

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:


Admin

String AdminName;

Int AdminAge;

String AdminGender;

addRecords();

UpdateRecords();

Doctor

String DoctotName;

Int DoctorAge;

String DoctorSpecialization;

viewPatientHistory();

viewScheduledAppointments();



CS504 Assignment 2 Solution Fall 2021 Download


Check Also:


CS504 Midterm Past Papers


CS504 MCQs Solved 


CS504 Solved Midterm Past Papers by Moaaz


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.


Post a Comment

1 Comments