Demonstrate the correct working of your classes by reading


Create a Student class which will contain the following:

1) A String object to hold a student's last name

2) An array object to hold five integers representing the student's grades

3) A method to read in the Student class from a file formatted as:

a) Name on one line by itself

b) Five integer values for the grades on one line delineated by commas

4) A method to display the students name, grades, and average.

An Array class will be used to hold the collection of Student objects. This Array class will have a method to sort the Student records by name.

Demonstrate the correct working of your classes by reading in a collection of student records from a file, sort the records, and print them. If a name is "EOF" it will mark the end of the file.

There will be a maximum of 25 student records in the file, although it may be less.

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Demonstrate the correct working of your classes by reading
Reference No:- TGS0645951

Expected delivery within 24 Hours