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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started