Question: Question: Write down the code for addCouse, getCourse, getCourseList in script with comments highlighting the necessity of the line in coding. To perform the operation
Question: Write down the code for addCouse, getCourse, getCourseList in script
with comments highlighting the necessity of the line in coding.
To perform the operation smoothly a class designed Admin that manages the courses offered in a
semester and publishes the offered courses list to the students. The admin can increase the seat
capacity of a specific course, and can see the status how many students registered for that course,
its seat capacity, etc. of any of the courses.
public class Admin
public void offerCourseCourse course
AaddCoursecourse;
public void publishOfferedCourse
Course courses
CurrentOfferedCourse.getInstancegetCourseList;
System.out.printlnOffered Courses List:";
int i ;
forint j ; j
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
