Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This program will practice with queues to manage waiting lists for two seminars. When the program begins, the current enrollment data is read from text
This program will practice with queues to manage waiting lists for two seminars. When the program begins, the current enrollment data is read from text file enrollees.txt using a FileChooser control, stored into the two linked lists, and added to the two ListView controls.
Processing: The user enters a name, selects seminar A or B from the radio buttons, and selects the option to Add or Drop the seminar. There is a limit of
people for each seminar. Add: If there is room, the person is added to the linked list for that seminar. The List View is refreshed. If there is no room, the person is added to the wait list queue for that seminar. The result message displays. Code can assume names are unique. Drop:
If the name is not found in the selected seminar, the result message reports the error. If the name is
found, the person is removed from the linked list for that seminar. If a person is waiting on the seminar
wait list queue, they are dequeued and added to the linked list. The ListView is refreshed. The result
message displays.
Please write all the code for this in javafx please.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started