Student class:
Create a class Student and declare (id, name, and enrolled Courses) as private fields.
enrolled Courses field should be declared as ArrayList.
Create a parameterized constructor that takes two parameters (id, and name). The
constructor should take these parameters to set values to a student id and name as well as
initiating the enrolledCourses ArrayList.
Create getter methods to all declared field in this class. The methods should be declared
as protected methods.
Declare addCourse abstract method to add a student course.
Create method showDetails to display a student information (name, id, and
enrolledCourses) in the output.
CS_student:
Create a class CS_student (subclass) derived from Student (super class).
Declare a private field CS plan as HashMap which stores a CS student academic plan.
The HashMap should stores a course level number (String) as key and course code
(String) as the value.
Create a parameterized constructor that takes two parameters a student (id, and name).
The constructor also should call a method CS_plan to set the student academic plan once
it is created by the class.
COMP_214/Assignment-2/2022-2023/Third_Semester
Manal Zakri
Declare set_CSplan method to set the plan for enrolled SC students.
The CS plan HashMap should contain the following:
Key Value
"Levell 1" "COMP-111"
"Levell 2" "COMP-121"
"Levell_3" "COMP-131"
"Level2 1" "COMP-211"
"Level2 2" "COMP-221"
"Level2_3" "COMP-231"
"Level3_1" "COMP-311"
"Level3 2" "COMP-321"
"Level3_3" "COMP-331"
"Level3 4" "COMP-332"
Implement addCourse method that is declared in the Student class to add a student
course into enrolled Courses ArrayList. The method must check if a course is included in
the CS plan before it is added.
Create method showDetails to display a CS student information (CS_plan, name, id, and
enrolledCourses)in the output. The method should be overridden by showDetails method
in Student class.
IT_student:
Create a class IT_student (subclass) derived from Student (super class).
Declare a private field IT plan as HashMap which stores an IT student academic plan.
The HashMap should stores a course level number (int) as key and course code (String)
as the value.
Create a parameterized constructor that takes two parameters a student (id, and name).
The constructor also should call a method IT_plan to set the student academic plan once
it is created by the class.
Declare set_ITplan method to set the plan for enrolled IT students.