Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

how would you have done things differently?

Answered: 1 week ago