Create a class named School that contains fi elds for the School name and number of students enrolled and properties for each fi eld. Also, include an IComparable.CompareTo() method so that School...


Create a class named School that contains fi elds for the School name and number of students enrolled and properties for each fi eld. Also, include an IComparable.CompareTo() method so that School objects can be sorted by enrollment. Write a program that allows a user to enter information about fi ve School objects. Display the School objects in order of enrollment size from smallest to largest School. Save the program as SchoolsDemo.cs.



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here