Files Assignment
Use the Student Object as declared in the obj_array.java example. (firstname, lastname, average)
Create an array of student Objects.
Read in data to the array from the file called people.txt on the I://
You will need to use the Int.parseint method to help you put out the average.
Print out the array to the screen after all of the data has been read in.
Show this to me when you are finished
You may wish to borrow information from the inputfile.java and outputfile.java files on the I://
Example of the output:
Name Average
-------------------------------
Dennis Ritchie 70
Grace Hopper 96
James Gosling 52
Alan Turing 100
Fred Brooks 23
Example
of data in the people.txt file
Dennis
Ritchie
70
Grace
Hopper
96
James
Gosling
52
Alan
Turing
100
Fred
Brooks
23