(Solved) : Create Class Call Collegecourse Add Field Department Course Number Section Number Maximum Q37227063 . . .

. Create a class call CollegeCourse Add a field for department, course number, section number, maximum number of students (ca

. Create a class call CollegeCourse Add a field for department, course number, section number, maximum number of students (capacity) Add a constructor that accepts and sets these 4 properties. Set the value for department with all uppercase characters . . Add getDepartment, getSectionNum, getCanacity methods Override the toString method to represent the course in this format “CISC181-12” where “CTSC” is the department, 181 is the course number and 12 is the section number. Override the equals method to return true if the courses department, course number and section number are equal Modify your CollegeCourse to implement the Comparable Interface All classes that implement the Comparable interface must override the sempareTe method that is provided in all Object classes. See Textbook Example 15.11 for how to define the Define the camparele method by first comparing the department, then the course multiple properties. number and lastly the section number. Download ‘CollegeCourseTest.java’ and put it in your Test folder. Test your CollegeCourse class. Your class should pass all the tests without changing anything in the test file. Show transcribed image text . Create a class call CollegeCourse Add a field for department, course number, section number, maximum number of students (capacity) Add a constructor that accepts and sets these 4 properties. Set the value for department with all uppercase characters . . Add getDepartment, getSectionNum, getCanacity methods Override the toString method to represent the course in this format “CISC181-12” where “CTSC” is the department, 181 is the course number and 12 is the section number. Override the equals method to return true if the courses department, course number and section number are equal Modify your CollegeCourse to implement the Comparable Interface All classes that implement the Comparable interface must override the sempareTe method that is provided in all Object classes. See Textbook Example 15.11 for how to define the Define the camparele method by first comparing the department, then the course multiple properties. number and lastly the section number. Download ‘CollegeCourseTest.java’ and put it in your Test folder. Test your CollegeCourse class. Your class should pass all the tests without changing anything in the test file.

Expert Answer


Answer to . Create a class call CollegeCourse Add a field for department, course number, section number, maximum number of student…

Leave a Comment

App

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Contact

info@coursedeep.com

+91 8634554387