Question: Write a program that will produce a report showing the current and maximum enrollments for a number of classes. Your applications should be designed with

Write a program that will produce a report showing the current and maximum enrollments for a number of classes. Your applications should be designed with two classes. The first class should include 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. In the implementation class, declare parallel arrays and do a compile-time initialization for the name of the course, current enrollment, and maximum enrollment. Also declare an array of class objects in your implementation class. Test your application with the following data:

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

Current Maximum Class name enrollment enrollment CS150 180 200 CS250 21| 30 CS270 9 20 20 CS300 4 CS350 20 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!