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
This note was uploaded on 04/08/2008 for the course CSCI 112 taught by Professor Yuen during the Fall '07 term at Lake Forest.
- Fall '07