This preview shows page 1. Sign up to view the full content.
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 students 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