Student Fee Payment
|
|||||||||||||||||||||||||||||||||||||||||||||||||
Time to complete - | Allow 4-5 hours continuous | ||||||||||||||||||||||||||||||||||||||||||||||||
Program Download | Studfees.CBL is a model answer. Don't look at this until you have made your own attempt at the program. | ||||||||||||||||||||||||||||||||||||||||||||||||
Example Output | Fees.Rpt (Outstanding Fees Report) | ||||||||||||||||||||||||||||||||||||||||||||||||
Example Input |
StudPay.Dat (A sequential file recording student
payments) |
||||||||||||||||||||||||||||||||||||||||||||||||
Major Constructs | Indexed Files, Print Files | ||||||||||||||||||||||||||||||||||||||||||||||||
IntroductionAt the beginning of each term Student Services creates a report showing those students whose fees are still outstanding. Until now this report was created manually but because the task is very time consuming Student Services have decided to computerise it. You have been asked to write the program which will apply a transaction file of student payments to the Student Master File and which will then produce a report showing those students whose fees are partially or wholly outstanding. The Student Payments transaction file is a validated sequential file sorted on ascending Student-Number. The TaskA program is required which will use the payment records in the Student
Payments File to update the Amount-Paid field in the Student Master File
and which will then use the Student Master File to produce a report showing
the fees outstanding.
|
Field |
Type |
Length |
Value |
Student-Number |
N |
7 |
- |
Payment |
N |
6 |
0.01-9999.99 |
The Student Master File is an Indexed file. It contains details of all the students taking courses in the University. Each record has the following format;
Field |
Key |
Type |
Length |
Value |
Student-Number |
Primary |
N |
7 |
- |
Student-Name |
Alt with duplicates |
X |
30 |
- |
Gender |
- |
X |
1 |
M/F |
Course-Code |
- |
X |
4 |
- |
Fees-Owed |
- |
N |
4 |
1000-9999 |
Amount-Paid |
- |
N |
6 |
0-9999.99 |
The Fees field is a currency value with no digits after the decimal point. The field should have comma insertion and a floating dollar sign. The Amount Paid, Amount Outstanding and Total Outstanding fields are currency values with floating dollar signs, comma insertion and two digits after the decimal point. There is no need to worry about page breaks or line counts.
Copyright Notice
This COBOL project specification is the copyright property of Michael Coughlan. You have permission to use this material for your own personal use but you may not reproduce it in any published work without written permission from the author.