Question
For the question down below, I am utilizing C# as the coding language in Visual Studio 2015. It is asked to create a program that
For the question down below, I am utilizing C# as the coding language in Visual Studio 2015. It is asked to create a program that will produce a report showing the current and maximum enrollments for a number of classes. The first image posted down below includes the question aspect while the following image is the output that should be obtained. Please include as many comments as possible throughout the code and make sure to utilize the table listed in the first image. Post a picture of the output produced once the code successfully ran. I will rate afterwards accordingly!
Assignment of chapter 7: 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 enrollment Maximum enrollment Class name CS150 180 200 CS250 CS270 CS300 CS350 Sample Output: Course Enrollment App Current Enrollment 180 Seats Available 20 Class Name CS150 CS250 CS270 CS300 CS350 21 | Assignment of chapter 7: 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 enrollment Maximum enrollment Class name CS150 180 200 CS250 CS270 CS300 CS350 Sample Output: Course Enrollment App Current Enrollment 180 Seats Available 20 Class Name CS150 CS250 CS270 CS300 CS350 21 |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