Lab 1

The file lab1.dat contains a list of student grades. Each student is stored as a 3-digit identification number (int) and two grades on consecutive lines (in this order). The first entry in the file is the number of students in the file. Create an application object whose run function reads each student and prints student information. The student class should have a read and a print function. Read should read a student from a file while print should print the students number, grades (both) and an average of the two grades. Notice that if you use the usual way to compute average - (_grade1 + _grade1)/2, you will get integer results. This is because all of your variables are integers. This result is fine for the first lab.