Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Task The task is to read a file, store the data into objects, and process the ob

ID: 3783756 • Letter: T

Question

Task

The task is to read a file, store the data into objects, and process the objects. The file is formatted as pairs of lines: the first line of each pair is the name of a student, and the second line is a list of grades. This data will be stored in a Grades object. The Grades class will have several methods for processing the data.

For example, if this is the contents of the file being processed:

then the following should be printed:

Reading in the Data

Assume that the name of the file is data.txt . In Eclipse, the file needs to be in the top directory of the project. Reading all the data in the file can be accomplished by a sequence of code like:

Of course, you need to add code so that Grades objects are created with the data that is read.

Testing

Each Grades object you create should be tested with the following static method.

This method should be included in your Lab2.java file exactly as it appears. testGrades should be called on each Grades object after all of its data has been stored in it. Note that this code requires that you implement several methods within the Grades class. Note: thetoString method should return a String and should not contain any print statements within it. See the example output above.

Explanation / Answer

   }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote