Create a program named schoolsdemo that allows a user to


Prepare a program

Question 1: Create a program named SchoolsDemo that allows a user to enter data about five school objects and then displays the school objects in order of enrollment size from smalles to largest. The school class contains fields for the school name and number of students enrolled and properties for each field. Also, include an Icompareable.CompareTo() method so that School Objects can be sorted by enrollment.

Question 2: Create a program named SchoolMinEnroll that modifies the SchoolsDemo program created in 8a so that after the school objects are displayed in order, the program prompts the user to enter a minimum enrollment figure. Show all school objects that have an enrollment at least as large as the entered value.

Prepare this application in java programming - Please show me all the working and provide the answer.               

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a program named schoolsdemo that allows a user to
Reference No:- TGS0952679

Expected delivery within 24 Hours