Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
public class Course { int deptNum; int courseNum; public Course(int deptNum, int courseNum){ this.deptNum = deptNum; this.courseNum = courseNum; }...
Attached files to downloadCourse.javaRoster.javaStudent.javaTestRoster.javaProblem: RostersThis assignment. involves a program made up of several Java classes:Your task is to finish Roster.java by replacing each line marked “// replace this line with your code” with code that makes the method do what its comment says it does. There are 5 such lines.An object of class Course represents a course, e.g. 198:111. A course has a department number and a course number.An object of class Student represents a student. A student has a personal (first) name and a family (last) name.An object of class Roster represents a particular section of a course. A roster has an array of students, an int numStudents, that says how many students there are in the section, an int stopPoint that gives the maximum number of students that may be in the section, and a course that says which course this roster is a section of. Note that the students are not in any particular order in the array, but they will be in the first numStudents elements of the array.The class TestRoster that has a main method that can be used for testing Roster. There will never be an object that is an instance of this class.Some rules to followYou may not change Course.java or Student.java. (You will not be handing these in, anyway.)You may put any code you want in TestRoster.java to test your code. (You will not hand this is, either.)You must replace each of the lines in Roster.java marked “replace this line”. (Replace them with as many lines of code as you want.)You may add methods to Roster.java as long as they are private.You may not make any other changes to Roster.java.Handing inUpload and submit only the file Roster.java as the answer to this assignment. Be sure to upload the version with your code, not the version you downloaded.
- Attachment 1
- Attachment 2
- Attachment 3
- Attachment 4