Question: Create a Students class to Model a Student object. Allow the user to enter the first and last names and grades of the students. The

Create a Students class to Model a Student object. Allow the user to enter the first and last names and grades of the students. The user should be prompted for the name of the file to create and for the number of student grades that will be entered. After the data has been entered and the written to a file, the file should be read and information should be store in one 0r two Arrays. You must then sort the Array(s) so that students are ordered from lowest and highest grades. From the Array, all the Students are displayed first, then Students with the lowest and highest grades should then be displayed along with the average score for the class. Remember, you must use Array to maintain the data that is read from the file. You may use Java.util.Arrays and associated sorting Method in the Arrays class. Please remember to use try-catch appropriately.

Example I/O

What is the name of the file you want to create?:List.txt

// String thisfile = Scanner object.next; File myfile = new File("D:\\TestFolder\\thisFile");

How many students are in the class?: 10

Enter student full name: John Smith

Enter overall grade: 90

//Write code here for creating the object and then saving the object to file

//When you are finished adding Students to file, create an array list to store Students from file.

//Read the file and store students in the ArrayList.

//Sort the Arraylist according to grades for smallest to largest

Student Grade

John Smith 90%

Peter Parker 71%

............

Billy Bob 35%

_______________________________

Overall Average: 68.5%

Lowest Mark: 40%

Highest Mark: 90%

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 Databases Questions!