Can someone help me with some coding? I am trying to process a data file. The data file is a text file containing some ssn's, gpa's, and some other fields. outout should look like this:
ssn lastname firstname mi sexcode major
string[9] string[12] string[10] char (male,female) string3
cit gpa totalhours qpoints
boolean real:3 real:1 real:1
At the bottom left of the page there is to be a total student count
and at the bottom right there is to be average gpa. the above 10 headers are suppose to be all the way across, i just ran out of room.There is also a record status field(char type) and the first thing the program should do is check to see if rec_stat = a, if not then read next record, but that field does not show up on the output. Any help with this would greatly be appreciated. I have already tried to write this program, but I get so many errors, please help!
ssn lastname firstname mi sexcode major
string[9] string[12] string[10] char (male,female) string3
cit gpa totalhours qpoints
boolean real:3 real:1 real:1
At the bottom left of the page there is to be a total student count
and at the bottom right there is to be average gpa. the above 10 headers are suppose to be all the way across, i just ran out of room.There is also a record status field(char type) and the first thing the program should do is check to see if rec_stat = a, if not then read next record, but that field does not show up on the output. Any help with this would greatly be appreciated. I have already tried to write this program, but I get so many errors, please help!