Question: Write the code for this program: It s registration time at UCR for Summer classes. Students want to register for two of the best courses
Write the code for this program: Its registration time at UCR for Summer classes. Students want to register for two of the best
courses available, BUS and BUS Both of these courses have a maximum capacity of
students. Once the class is full, students are added to a waitlist. Once the waitlist is full,
students are unable to add themselves to the waitlist. The waitlist for each class can hold a
maximum of students. Students are able to add and drop both of the classes as much as
they want meaning that this is not specific to one user. At the time of writing, BUS had
students registered and BUS had students registered with students on the waitlist.
When a student adds a course, the enrollment increases by while dropping a course
subtracts one student from the total registered to take the course. A student should only be able
to add or drop course at a time. The system should prompt the user on a main menu to select
which role they would like to be student or admin. If the user chooses to be a student, they will
then be prompted to enter which course they would like to view which will display the number of
available seats. Students should then be given the option to add or drop the course. Depending
on the action the students selects, the amount of students enrolled in the class should adjust
as a result. After this, the student should be asked if they would like to add or drop another
course. Additionally, from this point a student should be able to return to the main menu.
Prof Vinkothe School of Business also want to be able to check UCRs registration banner to
keep track of how many students are enrolled in these courses. For the Admin, when prompted,
your registration system should display the number of students enrolled in both of these courses
simultaneously and the number of available seats. Afterwards, they should be asked if they
want to view the waitlist and if they choose to view, it should be populated for them, then they
should be returned to the main menu. Once the user logs off of the system completely from the
main menu, that will be the end of their use for the day.
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
