coboldummy
Programmer
I am having trouble solving the following problem:
Student exam results are stored on a disk file in candidate number sequence. There are three different papers in the exam with each result being stored on a separate record. Each record will also show the mark obtained (as a percentage) for the paper sat. There are four possible grades for each paper;
70% or more = distinction
50% to 69% = credit
40% to 49% = pass
less than 40% = fail
These are not part of the student’s record.
Program requirements are:
a) Produce a Data Division to include;
*The FD entry and record definition for the student file.
*A table, in Working-Storage, to hold a count of the number of students for each of the four grades within each exam paper, allowing for a maximum of 99 students.
b) Produce a complete Procedure Division to read each record in turn, using the PAPER and MARK fields from the incoming data to add 1 to the relevant counter in the table.
Any help would be gratefully appreciated as I am pulling my hair out QUICKLY!!!
Student exam results are stored on a disk file in candidate number sequence. There are three different papers in the exam with each result being stored on a separate record. Each record will also show the mark obtained (as a percentage) for the paper sat. There are four possible grades for each paper;
70% or more = distinction
50% to 69% = credit
40% to 49% = pass
less than 40% = fail
These are not part of the student’s record.
Program requirements are:
a) Produce a Data Division to include;
*The FD entry and record definition for the student file.
*A table, in Working-Storage, to hold a count of the number of students for each of the four grades within each exam paper, allowing for a maximum of 99 students.
b) Produce a complete Procedure Division to read each record in turn, using the PAPER and MARK fields from the incoming data to add 1 to the relevant counter in the table.
Any help would be gratefully appreciated as I am pulling my hair out QUICKLY!!!