/* CH8B.C */ /* Program to produce the exam list for a module */ #include #include #include main () { /* Description ...... Ready files and read first line Initialize counts = 0 Initialise highest mark = 0 Initialise lowest mark = 100 Write heading line WHILE not at the end of the file Write name, initial and mark IF result = F Write 'FAIL' Add one to failure count ELSE Write 'PASS' Add one to pass count IF mark < lowest mark so far store mark as lowest IF mark > highest mark so far store mark as highest Add one to student count Read next line Write student count Write pass and fail counts Write highest and lowest marks Close files */ char surname [13] ; /* name of student */ /* Other variables as required */ }