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

S20 CS-103 CS-106 Object Oriented Programming - Midterm

The document provides instructions for an assignment on object-oriented programming in Java/C++. It lists 11 tasks related to creating classes and methods to manage data for different use cases like book management, course management, medical records, etc. It asks students to complete the tasks, paste their code into a Word document, take screenshots of the output, and submit a PDF file with their work. The tasks include creating classes, data files, methods for adding, updating, deleting and searching data, and applying object-oriented principles like inheritance and polymorphism.

Uploaded by

Qaseem Hussain
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views

S20 CS-103 CS-106 Object Oriented Programming - Midterm

The document provides instructions for an assignment on object-oriented programming in Java/C++. It lists 11 tasks related to creating classes and methods to manage data for different use cases like book management, course management, medical records, etc. It asks students to complete the tasks, paste their code into a Word document, take screenshots of the output, and submit a PDF file with their work. The tasks include creating classes, data files, methods for adding, updating, deleting and searching data, and applying object-oriented principles like inheritance and polymorphism.

Uploaded by

Qaseem Hussain
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

(Computer Science) Time Allowed: 2.

5 hrs
Max. Marks: 25
Object Oriented Programming

Solve the questions on any IDE of Java/C++. After completion of all tasks then copy your code and paste
in Microsoft Word and also take screen shots of your output and insert at the end of the document with
heading name “Output”. Finally Save file in PDF format and submit as per given instructions provided
by University.

1. Identify the attributes of the following objects (2)


2. Create the classes of the following Objects (2)
3. Create the data file of the following Objects (2)
4. Add static data member in Object class (created at step-2) which contains the value of data file
path (created at step-3) and its value should not access directly. So, access the value through
possible way. (2)
5. Create the data class for each data file (created at step-3) (2)
6. Create the following operations/methods in the data class (created in step-5) (2+2+2=6)
a. Add New Object/Row/Record
b. Update the value of Object/Row/Record of given ID
c. Delete the Object/Row/Record
7. Create the operation/method in the data class that show all the data. (created in step-5)
(2)
8. Create the operation/method in the data class that show the data of given ID. (created in step-
5). (2)
9. Create the operation/method in the data class that search the Object/Row/Record by given
search string. (created in step-5) (2)
10. All implementation should be proper apply OO paradigm (like Inheritance and Polymorphism)
(3)

Note: Perform all steps (above from 1 to 7) on the case study which has been given to you.
Each student will according to his/her task (i.e. Roll no 15091519-091 will solve all given (above) questions
for task: book issue to student)

Sr.No STUDENT NAME ROLL NO TASKS


1 JAHANGIR ABBAS 15091519-091 Book issue to Student
2 SYED HASEEB HAIDER 17271519-144 Teacher taking Course
3 MUHAMMAD MAZHAR SYED 17811519-010 Student taking Course
4 YAMNA FAROOQ 18820819-004 Student checking Course attendance
Teacher uploading Course
5 SHAHZADI KAINAAT 18820819-003
attendance
Student uploading Course
6 AFIA HABIB 18321519-010
assignment
7 FAREEHA IHSAN 16201519-090 Teacher make Course assignment
8 MUHAMMAD HAMZA 18321519-142 Teacher upload course result
9 ZOYA JAVED 16201519-007 Teacher upload course quiz
Teacher make group of students
10 MUQADDAS RANI 18321519-078 (Hint: use count to specify number of
students (objects))
11 MOHSIN YOUNAS 18321519-111 Teacher uploading Course Lecture
12 SAMAN ABDULREHMAN 18321519-113 Product order an item
Doctor refer patient to another
13 NAZAR HUSSAIN 18321519-133
department
14 SHERAZ MUNAWAR 18321519-027 Student request to drop a course
15 MAHAM ARSHAD 18321519-162 Student solve course quiz
16 MUHAMMAD WALEED 16201519-105 Customer cancel order
17 HASEEB PERVAIZ MIRZA 18321519-047 Patient add his/her medical history
Student request for enrollment in
18 MARIAM KHALID 18321519-085
the course
All teachers are staff members of
19 MUHAMMAD WAQAS 18321519-018
college
Course Assignment scheduled by
20 SHAHZADA NABEEL ANJUM 18321519-061
Teacher
21 MUHAMMAD HASSAN 17271519-161 Book is issued to student
Teacher accept request of
22 GHUFRAN KHAN 16201519-149
session/online discussion
23 SHAHZAIB NASEEB 18321519-117 Patient collect report
24 SYEDA AREEJ FATIMA 18321519-115 Course Quiz solved by student
25 MAHNOOR ANSAR 18321519-108 Bill is paid through credit card
26 ALI TAQVEEM 18321519-127 Teacher schedule Course Assignment
27 MUHAMMAD ALI 16201519-032 Patient is checked by doctor
28 MUHAMMAD ZORAIZ GHANI 18321519-161 An order is made by customer
Request is added by student to drop
29 HAMZA SHAKEEL 18321519-107
course
Remarks are added by teacher for a
30 ALI RAZA 18811519-017
specific student
31 USAMA MUSTAFA 19011519-001 Doctor update medical history
Doctor confirms patient’s
32 USAMA RAHEEM 19011519-002
appointment
Patient is referred to another
33 USAMA SAEED 19011519-003
department
Product belong to a product
34 JAWAD ALTAF 19011519-004
category.
35 FAIQA SHABBIR 19011519-006 Patient book an Appointment
36 BILAL AHMED 19011519-007 Course Result is uploaded by teacher
37 FAISAL IQBAL 19011519-008 Doctor set patient category
HOD allot subjects to staff members
38 FAIZAN AHMAD 19011519-009
in a department.
39 MUNEEB UR REHMAN SHUJA 19011519-010 Customer request to refund credit
Doctor add remarks for a specific
40 ZAINAB ASHFAQ 19011519-011
patient
41 HASSAN RAZA 19011519-012 Student taking Course
Course Attendance is uploaded by
42 SHIZA WAHEED 19011519-013
Teacher
43 MARWA MAQSOOD 19011519-014 Course is taken by Teacher
44 ZUNAIR AHMAD 19011519-015 Doctor check patient.
45 MEHAK RAFI 19011519-016 Doctor login to system
46 MUHAMMAD ABUBAKAR JAMIL 19011519-017 Customer cancel order
47 MUHAMMAD BILAL 19011519-018 Doctor set schedule (time slots)
48 USAMA RAFIQ 19011519-019 Patient add his/her medical history
49 ABDULREHMAN USAMA 19011519-021 Course Result is uploaded by teacher
Student add feedback for a
50 WAHAB MUSHTAQ 19011519-023
particular teacher
51 SIDRA NASEEM 19011519-024 Teacher add remarks for a student
52 MUNEEB AHMED 19011519-025 Customer request to refund credit
Patient is referred to another
53 UMAIR HASSAN 19011519-026
department
54 MUHAMMAD SAQIB 19011519-027 Customer request to replace item
Student request for enrollment in
55 MUHAMMAD MEHRAN 19011519-028
the course
56 SADDAM KHALID 19011519-029 Customer purchase a product
57 QASEEM HUSSAIN 19011519-031 Report is collected by patient
58 MUHAMMAD SHAHBAZ AKRAM 19011519-032 Student solve course quiz
59 HASSAAN AHMAD 19011519-034 Teacher taking Course
HOD has a staff that work according
60 SUMAYYA 19011519-035
to instruction of him
61 MUHAMMAD ABDULLAH 19011519-036 Report is collected by patient
62 AROOJ SAGHAR 19011519-037 Product Item belongs to Product
Teacher uploading Course
63 MARIYAM 19011519-038
attendance
Product belong to a product
64 HAFSA IMRAN 19011519-039
category.
65 ZEESHAN RAZZAQ 19011519-041 Patient is checked by doctor
66 FAIQ AHMAD TABANI 19011519-042 Customer request to refund credit
67 SHIFA SHAHZADI 19011519-078 Product is purchased by customer
68 NAUMAN TARIQ 19011519-088 Book is issued to student
69 RIMSHA AMJAD 19011519-128 Customer request to cancel order
70 SYEDA UME PAKIZA IMRAN 19011519-131 All staff members work under a HOD
71 USAMA BIN ATTA 19011519-139 Bill is paid through credit card.
72 NOUMAN AHMED 19011519-140 Student add feedback for a teacher
73 HASEEB KHALID 19011519-145 Teacher uploading Course Lecture
74 TOQEER AHMAD 19011519-147 HOD is staff member of college
75 SHIRAZ AHMED MUNIR 19011519-148 Doctor set patient category
76 SAIMOON ILYAS 19011519-150 Teacher taking Course
Customer pays bill through credit
77 YUSRA IBRAHIM 19011519-151
card
Teacher accept request of
78 ZAINAB BIBI 19011519-158
session/online discussion
All teachers are staff members of
79 MUHAMMAD NOUMAN 19011519-159
college
Product has collection of Product
80 MUHAMMAD ABDULLAH 19011519-160
Items
Doctor add remarks for a specific
81 ZEESHAN ALI 19011519-163
patient

You might also like