CSC 203-903 COBOL ASSIGNMENT #4

Due Monday, May 21, 2001

GRADING:  This program will be graded on a 50 point basis. A 10% penalty per week applies if you miss the due date. The assignments will NOT be accepted after June 4, 2001.

OVERVIEW: The fourth COBOL programming assignment involves:
        1. Reading input records from a university file (GRADES4.TXT)
containing student records with grades.
        2. Generating a report with 2 control breaks (department and school) and
appropriate averages and some final totals.

PURPOSE: To gain experience writing COBOL programs involving Control Break logic.

REQUIREMENTS: To receive full credit for this assignment, you must submit on time:
        1. A listing of your COBOL program
        2. A correct student report including the date on report title line

NARRATIVE: A prominent midwestern university has selected students from four of its schools. Each school has one or more departments. The Dean is interested in the following information:
    a) the average number of credits taken by each student in each department and school.
    b) the average grade point average (for the quarter in question) of each student in each
department and school
    c) the total credits taken from all those selected
    d) the average grade point average of all students selected


INPUT RECORD SPECIFICATIONS:
(GRADES4.TXT 39 bytes/record)

FIELD COLUMNS DATA CLASS
School 1-3 alphanumeric
Department 4-6 alphanumeric
Student # 7-10 numeric 
Student Name 11-30 alphanumeric
Student Grades 31, 33, 35, 37, 39 alphanumeric (could be blank)
 

OUTPUT SPECIFICATIONS:

10/30/00                                          STUDENT REPORT
------------------------------------------------------------------------------------------------------------------------------------------------------
SCHOOL  DEPARTMENT  STUDENT  STUDENT        GR GR GR GR GR  TOTAL     GPA  PROB
                                       NUMBER   NAME               1    2    3    4    5   CREDITS
-----------------------------------------------------------------------------------------------------------------------------------------------------

NLR         CLS                 3425          JONES FRED     A   C   B   B             16        3.00
                                      4235          HOPPER JOHN   F   F   D   F              16        0.25     *
                                      5671          POPPER SUE    A   A   A   A   B         20        3.80

AVERAGE NUMBER OF CREDITS FOR CLS = 17.3     AVERAGE GRADE POINT = 2.35

               DRT                 1432          SMITH SARAH   A   A   B   C   C         20        3.00
                                      9832           SAMUELS S.    C   C   F   D               16        1.25     *

AVERAGE NUMBER OF CREDITS FOR DRT = 18.0     AVERAGE GRADE POINT = 2.12

AVERAGE NUMBER OF CREDITS FOR SCHOOL NLR = 17.6    AVERAGE GRADE POINT = 2.23

[next page for next school etc., etc., etc......]

NOTES:
    1. To compute TOTAL CREDITS know that each course carries a weight of 4 credit hours
    2. To compute GPA, an "A" grade = 4 pts, a "B" grade 3 points, etc.
    3. The " in the last column means THAT STUDENT IS ON PROBATION [GPA < 2.00].
    4. The SCHOOL and DEPARTMENT names should only be printed out immediately after 
   
         a Control break and then ‘suppressed’.
    5. FINAL TOTALS: The last page must show these grand totals:
        Total credits for ALL students
        Total overall grade point average for ALL the students combined (use the total 
   
         grade points for all students divided by the total number of grades for all students)
        Total number of students on probation.