For this lab you can work with a partner.
The main aim of this lab is to introduce you to the concept of object interaction.
For this lab you will implement two classes that represents a student and courses that the student has taken.
Class Design
course class
For the course class you will have to store the following information. Define your fields according. You can also add more fields that you think appropriate.
Course Name
CRN
For each Field you will implement an accessor and a mutator method. You will need to implement two constructors: a default constructor and other that will take parameters to initialize fields. The parameters should have same name as the fields.
Student class
A student will be required to take three courses. Besides this the student class will also have a few field of its own like:
Student Name
Student ID
The student class should have methods to print information to the screen about all the courses along with student information.
You should also have methods to modify course information in student class. You may implement different methods to modify Course Name and CRN. The method should then print updated course information to ensure that course was indeed modified. The signature for this method will look something like this:
public void changeCourseName(String oldCourseName, String newName).
Hint: The method will have to check for the course with the oldCourseName and update its name. Similar thing for CRN.
Please document your code.
Absolutely Necessary!