Question: public class Test { public static void main(String[] args) { // Build Annie's schedule CourseSchedule annieSchedule = new CourseSchedule(Annie Atom); annieSchedule.add(new Course(CS 100, Prof, Smith));

public class Test { public static void main(String[] args) { // Build Annie's schedule CourseSchedule annieSchedule = new CourseSchedule("Annie Atom"); annieSchedule.add(new Course("CS 100", "Prof, Smith")); annieSchedule.add(new Course("ANTHRO 10", "Prof. Jones")); annieSchedule.add(new Course("MATH 125", "Prof. Aardvark")); annieSchedule.display(); // Build Myra's schedule CourseSchedule myraSchedule = new CourseSchedule("Myra Moore"); myraSchedule.add(new Course("CS 233", "Prof, Jensen")); myraSchedule.add(new Course("CS 234", "Prof. Thomas")); myraSchedule.display(); // Build Zach's schedule CourseSchedule zachSchedule = new CourseSchedule("Zach Zween"); zachSchedule.add(new Course("PSYCH 140", "Prof, Arnold")); zachSchedule.add(new Course("ANTHRO 10", "Prof. Jones")); zachSchedule.add(new Course("FRENCH 1", "Prof. Renior")); zachSchedule.display(); // Register all of them Registrar r = new Registrar(); r.register(annieSchedule); r.register(myraSchedule); r.register(zachSchedule); // EXTRA CREDIT (1 pt) r.deRegister("Myra Moore"); r.display(); } } 

--- - - - -- -- -- - -- --

Expected output :

=== Schedule for Annie Atom === Course: ANTHRO 10, Instructor: Prof. Jones Course: CS 100, Instructor: Prof, Smith Course: MATH 125, Instructor: Prof. Aardvark 
=== Schedule for Myra Moore === Course: CS 233, Instructor: Prof, Jensen Course: CS 234, Instructor: Prof. Thomas 
=== Schedule for Zach Zween === Course: ANTHRO 10, Instructor: Prof. Jones Course: FRENCH 1, Instructor: Prof. Renior Course: PSYCH 140, Instructor: Prof, Arnold 
########## REGISTRATION SUMMARY ########## 
=== Schedule for Annie Atom === Course: ANTHRO 10, Instructor: Prof. Jones Course: CS 100, Instructor: Prof, Smith Course: MATH 125, Instructor: Prof. Aardvark 
=== Schedule for Zach Zween === Course: ANTHRO 10, Instructor: Prof. Jones Course: FRENCH 1, Instructor: Prof. Renior Course: PSYCH 140, Instructor: Prof, Arnold 

---------- - -- - - - - - - -- - - -

Your job is to make code (shown below) produce the output that follows.

In doing so, you must:

Use the Test code provided (it will be on BB)

Make sure your output looks EXACTLY like the expected output

Implement the classes Course, CourseSchedule, Registrar. Use a List to

implement CourseSchedule

Use a Map to implement Registrar

Support deRegister (removes CourseSchedule from registrar)

Sort the CourseSchedule every time a Course is added

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!