Can anyone help me to the write program below:
A sequential access file TEST.txt has some student records, each of which contains ID NUMBER, NAME, EXAM1, EXAM2 and EXAM3. EXAM1, EXAM2 and EXAM3 are integer grades of MATH exams.
Write a MAIN function to read file TEST.txt and compute and write the MEAN (mathematical average) of the grades of MATH exams greater than 45.50 into a sequential access file RESULT.txt.
Records written into RESULT.txt file will contain ID NUMBER, NAME and MEAN for each student. FILE record will be declared and defined as a C STRUCTURE (i.e., a STRUCTURE variable will be used when reading and writing file records).
You should create your own input file "TEST.txt" with at
least ten records to test the program. You can use any text editor when creating input file "TEST.txt".