Question: Write a two class solution that includes data members for the name of the course, current enrollment, and maximum enrollment. Include an instance method that

Write a two class solution that includes data members for the name of the course, current enrollment, and maximum enrollment. Include an instance method that returns the number of students that can still enroll in the course.

The ToString( ) method should return the name of the course, current enrollment, and the number of open slots. Design your solution using parallel arrays. Declare an array of class objects in your implementation class. Test your application with the following data:

Current Class name enrollment Maximum enrollment CS150 180 200 CS250 21 30

Current Class name enrollment Maximum enrollment CS150 180 200 CS250 21 30 CS270 9 20 CS300 4 20 CS350 20 20 20 20

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 Systems Analysis Design Questions!