Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions