Question: I'm having trouble creating a Course class in Java without scanners. The class must contain the following parameters - the name of the course, credits
I'm having trouble creating a Course class in Java without scanners. The class must contain the following parameters - the name of the course, credits a student earns by taking the course, the roster of seats available for students, and the number of seats that have been taken.
After creating a constructor, getters and setters, I have to implement a boolean addStudent function that determines if the student is enrolled in the course and that there is available space. The return is true is the student can be enrolled.
Then, I must generate the roster for the course using a String that contains the student's names.
The last step is to calculate the average GPA of the students enrolled in the course while remembering to omit the empty seats from the calculation.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
