Docsity

Assignment Question (A scenario object identification, Assignments of Java Programming

Toggle sidebar
bg1
STUDENT DETAILS / DECLARATION:
Course Name: Bachelor of Science in Computer Science (BSCS)
Unit / Subject Name: Object Oriented Programming
Trainer’s Name: Ms. Shumaila Qayyum Assignment No: 1
Student Name: Ammar Azmat Student ID/Roll No.: 3297
Student Name: M. Ayyaz Khan Student ID/Roll No.: 3293
Submission Date:
ASSESSOR USE ONLY:
Result: Assignment o Satisfactory o Not Satisfactory
Feedback: Feedback is given to the student on each
Assessment task & final outcome of the unit
Yes / No
Assessor’s
Feedback:
Assessor’s
Signature:
Date:
--------------------------------------------------------------------------------------
ASSESSMENT FIRST SUBMISSION/RE-SUBMISSION RECEIPT: It is student’s responsibility to keep the
assessment submission receipt as a proof of submission of assessment tasks.
Student Names: Ammar Azmat & M. Ayyaz Khan Student ID
/Roll No.:
3297 & 3293
Unit / Subject Code: Object Oriented Programming Assignment No.: 1
Trainer Name: Ms. Shumaila Qayyum Date:
Signature:
Assessor’s
Signature:
Date:
pf3

Partial preview of the text

Download Assignment Question (A scenario object identification and more Assignments Java Programming in PDF only on Docsity!

 STUDENT DETAILS / DECLARATION:

Course Name: Bachelor of Science in Computer Science (BSCS) Unit / Subject Name: Object Oriented Programming Trainer’s Name: Ms. Shumaila Qayyum Assignment No: 1 Student Name: Ammar Azmat Student ID/Roll No.: 3297 Student Name: M. Ayyaz Khan Student ID/Roll No.: 3293 Submission Date:ASSESSOR USE ONLY: Result: Assignment o Satisfactory o Not Satisfactory Feedback: Feedback is given to the student on each Assessment task & final outcome of the unit Yes / No Assessor’s Feedback: Assessor’s Signature: Date:

ASSESSMENT FIRST SUBMISSION/RE-SUBMISSION RECEIPT: It is student’s responsibility to keep the assessment submission receipt as a proof of submission of assessment tasks. Student Names: Ammar Azmat & M. Ayyaz Khan Student ID /Roll No.: 3297 & 3293 Unit / Subject Code: Object Oriented Programming Assignment No.: 1 Trainer Name: Ms. Shumaila Qayyum Date: Signature: Assessor’s Signature: Date:

TASK: Scenario: "University Course Management System”

You are asked to develop a University Course Management System to keep track of courses, students, and instructors. Each course has a unique course code, a title, and a list of enrolled students. Each student has a unique student ID, a name, and a set of enrolled courses. Each instructor has a unique instructor ID, a name, and a list of courses they teach.

  1. Identify the objects for the scenario
  2. Identify classes for these objects
  3. Find out the attributes of each class
  4. Write the methods for each class
  5. Find out the relationships of the objects of each class ANSWER:Objects for the LMS  Course  Student  Instructor  Classes for These Objects  Course Class  Student Class  Instructor Class  Attributes of Each ClassCourse Class o courseCode : Unique identifier for the course. o title : Title of the course. o enrolledStudents : List of students enrolled in the course. o  Student Class o studentID : Unique identifier for the student. o name : Name of the student. o enrolledCourses : Set of courses the student is enrolled in.  Instructor Class o instructorID : Unique identifier for the instructor. o name : Name of the instructor. o teaching courses : List of courses the instructor is teaching.