Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

-identify the required classes/objects necessary to achieve the program requirem

ID: 3660892 • Letter: #

Question

-identify the required classes/objects necessary to achieve the program requirements;

-briefly describe any relationships that might exist between your classes; and

-briefly describe the overall hierarchy of your proposed classes.

Program Description - You have been asked to create a program designed to keep track of students enrolled at a certain college. The program must keep track of all students and the department they belong to. A single department can contain any number of students and every student should have a unique id to differentiate them from all the other students.

Explanation / Answer

There are two classes Student and Department. I am giving overview of objects in them and relation between them.

/**************This is Answered by Ravi - Pls note it***************************/

Class Student {

int id; //indicates database id

string name;

   long uniqId;

   int departmentId;

   string address;

   Date enrolledOn;

   String course;

   ....other details

}

/**************This is Answered by Ravi - Rate me only ***************************/

Class Department {

    int depIUniqId; //department uniq Id

    string depName;

    List<Students> students; //this will be loaded dynamically whenever required

    .... other details like HOD, lectrures, subjects,courses each department offers

}

/**************This is Answered by Ravi ***************************/

Relation b/w Department and Student Classes

A student must belong to a department. so its represented by departmentId in Student class. We can students based on department.

Main Class which manages the enrollments

class EnrollementManager {

void enrolNewStudent(Student student);

void updateStudent(Student student);

void deleteStudent(Student student);

void updateDepartment(departId, newStudents);

}

/**************This is Answered by Ravi ***************************/