CSC 203-903 COBOL ASSIGNMENT #2

Due Monday, April 23, 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 May 7, 2001.

OVERVIEW:  The second COBOL program assignment involves creating a COBOL program to manipulate the data found in the file named  PERSON2.txt  to produce a report containing a title, header lines, edited output, and a total line. 

PURPOSE: 1) To gain experience in writing COBOL programs 
                    2) To gain experience writing report heading lines 
                    3) To gain experience preparing edited output (for reports) 
                    4) To gain greater experience "debugging" simple COBOL programs 

REQUIREMENTS:  To receive full credit for this assignment, you must submit the following by the due date: 
            1) your COBOL program 
            2) a report with correct output 

NARRATIVE: A large bank has issued charge cards to some of its customers and these customers are charging various amounts to their accounts. These customers have paid off all or some of their previous monthly amounts. The bank wants a report of each customer, what their previous balance was, what they have charged for the current month, their finance charge (interest rate times old balance), and their final balance due. Besides proper report headings and detail lines, the bank wants totals on the number of customers, amount owed and amount financed (sum of finance charges). 

SPECIFICATIONS:  Each input record from PERSON2.txt consists of the following: 

FIELD COLUMNS
Customer number  1-4 
Customer last name  5-14
Previous balance  16-20 (assumed decimal) 
Charge-1 22-26
Charge-2 27-31
Charge-3 32-36
Charge-4 37-41
Charge-5 42-46
Charge-6 47-51
Charge-7 52-56
Charge-8 57-61
Charge-9 62-66
Charge-10 67-71

SPECIFICATIONS:  Each output line (except headers and totals) consists of the following: 

FIELD COLUMNS
Customer last name 2-11 
Customer number 15-18
Total Charges 22-30 
Previous balance  34-40
Finance Charge 44-50
Current Total 54-63
Message Area 67-80

PROCESSING: 
            1) Total charges = all the charges added up 
            2) Finance charge = 1.3% (.013) of previous balance 
            3) Current total = #1 + #2 + previous balance 

Example of input: 
1234JONES 01000 30000050001000000000000000000000000000000000000000 

Example of output:
---------------------------------------------------------------------------------------------------------------------- 
NAME    CUSTOMER   TOTAL         PREVIOUS     FINANCE    CURRENT    MESSAGE 
                NUMBER         CHARGES    BALANCE     CHARGE     TOTAL
 ---------------------------------------------------------------------------------------------------------------------- 
JONES    1234                  $450.00          $10.00              $0.13             $460.13 

NOTE: Any current total exceeding $1000 should be flagged with a message that states "OVER-EXTENDED"