Assignment 5

100 points

Overview

In this assignment, you will rewrite the program you wrote in Assignment 4 using external subroutines instead of internal subroutines. You will need to use standard entry linkage and exit linkage in the main routine and in each subroutine.

There are a few minor changes and one additional subroutine.


Input

The input to the program will be a file with an unknown number of records.

The data starts with a number of lines very much like those in the data for Assignment 4, followed by a line containing the integer -44444444. This number serves as a delimiter and is not part of the data. After that are several lines each containing one small nonzero integer.

Use the following JCL statement to specify the input file:

     //FT05F001  DD  DSN=KC02314.SPRING20.CSCI360.HW5DATA,DISP=SHR


What needs to be done


External Subroutines

You will need several external subroutines:

There are several requirements for using an external subroutine:


What does the HOWMANY subroutine do?

The HOWMANY subroutine will read each line in the file after the delimiter. For each line, it should do the following:


Other Requirements