Question
Objectives: CS 3340 Object Oriented Programming To practice more with collections and exceptions. Assignment: Your job is to extend the Registration System we built in
Objectives:
CS 3340 Object Oriented Programming
To practice more with collections and exceptions.
Assignment:
Your job is to extend the Registration System we built in class in 3 ways:
Support a new type of class called a OpenUniversity student. These students do not have an ID, but they do have a phone number. Two students are the same if they have the same name and phone number.
Allow each course to have a set of Open University students, in addition to regular students. There should be 2 capacities for each course, the number of regular students and the number of Open University students.
The number of Open Unversity students should not exceed the number of regular students at any time or else an exception should be thrown.
It should be possible to delete students from a course using a new "ds" command. When that command is entered, the system should ask the user for the ID of the student and then search both the full time students and Open University student lists for that student in the course. If found, that student should be removed from that list.
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