I have trouble with a certain C program.
The objective is to use a SINGLE(1) file only.
The program should do like this:
The program asks the user to input student ID,name, and peso contribution (individually and randomly). Then, the program saves this to "student.dat" file. At another option of the program, the user can retrieve per record of the student inputting the ID and getting the name and peso contribution. And the in the third part, the program generates the total peso contribution of ALL students from the "student.dat" file.
Does anyone know how to make this? This is going to be written using Turbo C only. Please help.