Question: WRITTEN IN COBOL A program is required which will process the Students File and will count the number of students born on each day of

WRITTEN IN COBOL

A program is required which will process the Students File and will count the number of students born on each day of the month and will display them in a 1 to 31 order. Student File Description: 01 STUDENT-REC. 05 STUDENT-ID PIC 9(7). 05 STUDENT-NAME. 10 STUDENT-SURNAME PIC X(8). 10 STUDENT-INITIALS PIC XX. 05 STUDENT-DOB. 10 BIRTH-YEAR PIC 9(4). 10 BIRTH-MONTH PIC 99. 10 BIRTH-DAY PIC 99. 05 COURSE-CODE PIC X(4). 05 GENDER PIC A.

Example run:

DAY Stud Count 1 2 2 4 3 0 ... 28 5 29 3 30 5 31 0

EXTRA INFO FILE-CONTROL. SELECT STUDENT-FILE-IN ASSIGN TO 'C:\Users emic\Desktop\STUDENTS.txt' ORGANIZATION IS LINE SEQUENTIAL. SELECT STUDENT-FILE-OUT ASSIGN TO 'C:\Users emic\Desktop\STUDENT-REPORT.TXT' ORGANIZATION IS LINE SEQUENTIAL.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!