Complete the implementations of various classes in a Student Management System. Read the API for StudentManagementSystem carefully, the API of this lab is available under doc folder in the Java project folder (doc index.html). Some example tests are given to you in the Tester class. You are required to write (at least three) additional tests to further ensure the correctness of your Student Management implementations.
We consider a database that stores information about students and courses. Each student record (e.g., String name, double percentage, int course ID) can be uniquely identified by a String ID (e.g., "e1), whereas each course record (e.g., String name and String instructor for course name and instructor name, respectively ) can be uniquely identified by an integer id (e.g., 2030).
You must implement all methods in the StudentManagementSystem by manipulating the two attributes students and courses, each of which declared as a HashMap.
class StudentManagementSystem {
HashMap < Integer, CourseInfo > courses;
HashMap < String, StudentInfo > students;
/ * All methods must be implemented via ’courses’ and ’students’
* /
}
Override the compareTo and equals methods in the StudentInfo class. Override the equals method in the CourseInfo class.For simplicity, you can assume that a student cannot be registered in multiple courses. For this lab you are required to submit Java files such as CourseInfo, StudentInfo, StudentManagementSystem, Tester in your Eclipse project. Note that the exception classes are available in the project folder.