Unformatted text preview: ◊ Use the Student class constructor to read from the file. (See how this was done in the example.) You will need to modify the Student class constructor appropriately. Remember to discard the rest of the line after reading a number. ◊ Only report the number of students, and the average GPA. ◊ Do not print out each student’s data (unless you are doing it for diagnostic purposes). ◊ Use the test data “newstudents1.txt” and “newstudents2.txt” to test your program....
View Full Document
- Fall '07
- English-language films, Subroutine, Filename, Computer file