Description
In this assignment, you will create two classes: MainClass and Course
The Course class should have:
- Attributes that can be read and written:
- Description (text) // course name
- Period (integer)
- Credits (integer)
- MaxEnrollment (integer)
- Attributes that are read-only:
- Id (text)
- Section (integer)
- A method that takes parameters for Id, Section, Description, Period, Credits, and MaxEnrollment and initializes the attributes to those parameters (do not use constructors)
- A method called PrintCourseInfo which will print out information about the course in the following format:
Business Systems 2 (Course ID: ISM3255, Section: 5555)
Period: 2
Credits: 2
Maximum Enrollment: 32
Once you have designed your course class, write a MainClass with a main method. Your main method should:
- Instantiate 2 course objects – course1 and course2 with some sample information
- Print out all the attributes of course1
- Print out course2 attributes using the PrintCourseInfo method you created
- Change MaxEnrollment attribute of course2
- Print course2 again (you can just copy/paste the code from steps 3)
Instructions for Submission
Â
1.     Your code should start with these two lines:
a.      //Group Number: <your group number>
b.     //PRESENT Members <members working on this assignment>
2.     Submit both classes that you created as attachments using the E-Learning Assignment tool.
Not following the instruction will result in losing some of your assignment points
Â