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. Assign1PartA_Driver should have only a
minimal amount of code: e.g., declare/create 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
3
- Upon instantiation, set up the initial list of waitlisted students (use 4 initial waitlisted students
for your demo/sample data) and grant the first student permission to register(when 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 20 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.
3. Create a driver class called Assign1PartA_Driver 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!