CS504 Software Engineering-1 Assignment 02 for Fall 2021 - Prof. Lodhi, Assignments of Software Engineering

Details about an assignment for the software engineering-1 (cs504) course in the fall 2021 semester. The assignment includes instructions for four questions related to creating classes, subclasses, and operations for a doctor and patient system. Students are required to write the correct syntax for the given operations and define the attributes for the user, doctor, and admin classes.

Typology: Assignments

2020/2021

Uploaded on 12/28/2022

komal.khawar
komal.khawar 🇵🇰

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Assignment No. 02
Semester: Fall 2021
Software Engineering-1 (CS504)
Solution File
Total Marks: 20
Due Date: 29-12-2021
Total Questions : 04 Total Marks: 20
Question No. 1: (3 marks)
Class Name Subclasses
User Inherited Classes
1.Doctor
2.Patient
3.Admin
Question No. 2: (4 marks) (-0.25 from each operation if syntax is incorrect)
Patient class Operations
1.viewDoctorTimetable();
2.bookAppointment();
3.searchDoctor();
4.cancelAppointment();
Question No. 3: (1.5+1.5 = 3 marks) (-0.25 from each operation if syntax is incorrect)
Doctor class Operations
1.checkUpcomingAppointments();
2.viewPatientMedicalHistory();
Question No. 4: (10 marks)
User
String DoctotName;
String AdminName;
Int DoctorAge;
Int AdminAge;
String AdminGender;
String DoctorSpecialization;
viewPatientHistory();
addRecords();
viewScheduledAppointments();
UpdateRecords();
Solution: (5+5)
2 marks for class name and 1.5 marks for attributes and 1.5 for operations
pf2

Partial preview of the text

Download CS504 Software Engineering-1 Assignment 02 for Fall 2021 - Prof. Lodhi and more Assignments Software Engineering in PDF only on Docsity!

Assignment No. 02 Semester: Fall 2021 Software Engineering-1 (CS504)

Solution File

Total Marks: 20 Due Date: 29-12- Total Questions : 04 Total Marks: 20 Question No. 1: (3 marks) Class Name Subclasses User Inherited Classes 1.Doctor 2.Patient 3.Admin Question No. 2: (4 marks) (-0.25 from each operation if syntax is incorrect) Patient class Operations 1.viewDoctorTimetable(); 2.bookAppointment(); 3.searchDoctor(); 4.cancelAppointment(); Question No. 3: (1.5+1.5 = 3 marks) (-0.25 from each operation if syntax is incorrect) Doctor class Operations 1.checkUpcomingAppointments(); 2.viewPatientMedicalHistory(); Question No. 4: (10 marks) User String DoctotName; String AdminName; Int DoctorAge; Int AdminAge; String AdminGender; String DoctorSpecialization; viewPatientHistory(); addRecords(); viewScheduledAppointments(); UpdateRecords();

Solution: (5+5)

 2 marks for class name and 1.5 marks for attributes and 1.5 for operations

Doctor String DoctorName; Int DoctorAge; String DoctorSpecialization; viewPatientHistory(); viewScheduledAppointments(); BEST OF LUCK Admin String AdminName; Int AdminAge; String AdminGender; addRecords(); UpdateRecords();