Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed concerning Cobol tables!! 1

Status
Not open for further replies.

coboldummy

Programmer
Mar 22, 2001
3
GB
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!!!
 
Hi CD,

What have you done up to this point? Why don't you show us some code?

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top