Question: I need a java code for this which should be done on IntelliJ. Activity 1 (Portfolio Task): Implement classes Student, Module and StudentSupportOffice that provide
I need a java code for this which should be done on IntelliJ.

Activity 1 (Portfolio Task): Implement classes Student, Module and StudentSupportOffice that provide the following functionality: Class Student: o Stores student id o Creates a human friendly representation of the class (i.e.toString()) o Allows a total ordering of students (i.e. students are comparable) Class Module: o Stores module id, a class list (an array of enrolled students with default capacity for 5 students), and the current size of the class list o Allows students to be enrolled if a student is not already in the class list (while maintaining the class list in ascending order based on student id) o Allows students to be unenrolled (the class list must not have gaps that break the sequence of enrolled students) Creates a human friendly representation of the class (i.e. toString(), improve print outs by ignoring empty elements within the class list) Class StudentSupportOffice: o Creates three modules: "CIS2344", "CIS2360" and "CIM2130" o Creates five students: "U0000001", "U0000002", "U0000003", "U0000004", "U0000005" o Enrols/unenrolls students to modules as described below Initially, students enrol to modules: Module "CIS2344" contains in its class list: Student "U0000001" o Student "U0000004" Module "CIS2360" contains in its class list: o Student "U0000001" o Student "U0000003" o Student "U0000005" Module "CIM2130" contains in its class list: o Student "U0000003" Student "U0000004" o Student "U0000005" Subsequently, students change modules (enrol and unenroll). Finally, modules contain the following students: Module "CIS2344" contains in its class list: o Student "U0000001" o Student "U0000002" o Student "U0000003" o Student "U0000004" o Student "U0000005" . Module "CIS2360" contains in its class list: o Student "U0000001" o Student "U0000002" o Student "U0000005" Module "CIM2130" contains in its class list: o Student "U0000001" o Student "U0000003" o Student "U0000004" Discuss your progress with your Tutor during practical sessions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
