CS270 Recitation 13: File I/O, parsing, dynamic memory

Goals

The Assignment

  1. Make a subdirectory called R13 for the recitation; all files should reside in this subdirectory.
  2. Copy data.txt to the R13 directory. It contains one line per student: Lastname,Firstname,StudentID,GPA,Sex,Class
    	    Smith,James,795534,2.9,M,senior
    	    Johnson,Mary,882417,2.2,F,sophomore
  3. Write a program that:
    1. Declares struct Student, which contains the information for a single student.
    2. Opens data.txt
    3. Reads & parses the lines into an array of struct Student.
    4. Closes the data file.
    5. Finds & displays all information, in some reasonable format, about the students with the highest and lowest GPAs.

Notes