Introduction to Programming Using Java Assignment

176 views 8:44 am 0 Comments November 20, 2023

Question 3
Implement a class Course for managing the registration of student for the class.

You need to implement the following sets of of methods for managing the registration of the student. (50 marks)
– The name of the course.
– The students who take the course.
– The number of students (default: 0).
– Creates a Course with the specified name.
– Returns the course name.
– Adds a new student to the course list.
– Returns the students for the course.
– Returns the number of students for the course.

Assignment Requirements
You are supposed to write Java program for the following questions. For every question, do provide at least THREE (3) different test cases.