Question: CourseWaitlist class that simulates the random operation on a course waitlist with some waitlisted students. Note: most of the work will be done here. Assign
CourseWaitlist class that simulates the random operation on a course waitlist with some
waitlisted students.
Note: most of the work will be done here. AssignPartADriver should have only a
minimal amount of code: eg declarecreate a CourseWaitlist instance, create initial
waitlisted students, and initiate the course waitlist simulation.
Fields
a CircularDoublyLinkedList of waitlisted students
any other field required to manage the student waitlist operations
Upon instantiation, set up the initial list of waitlisted students use initial waitlisted students
for your demosample data and grant the first student permission to registerwhen a student
is granted permission, they have two days to register Begin the simulation.
The simulation randomly chooses one of the operations and continues until the list is empty
or operations have been performed.
After each operation, the list of students on the waitlist is displayed together with the waitlist
status and the number of days left to register if they have permission to register
When the simulation stops, the termination condition of the simulation is displayed and the
final waitlist is also displayed.
Create a driver class called AssignPartADriver that invokes a simulation of the course waitlist
using a list of four waitlisted students of your choice. Complete the code in java
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
