Campus Bookshop
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Time to complete | This is a tough one. Allow 6 hours continuous. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Program Download | BookshopRpt91.Cbl is a model answer. Don't look at this until you have made your own attempt at the program. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example Output |
Bookshop.Rpt (The Campus bookshop Lecturer Purchase Requirements Report) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example Input |
In-PReq.Dat and In-Book.Dat and In-Pub.Dat are sequential files that be converted into the following indexed files -
using this program. The conversion program is required because Indexed files are not standard ASCII files and cannot be viewed or edited in a standard text application like Notepad. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Major Constructs | Indexed files, Report Writer, Report Section, INITIATE, GENERATE, TERMINATE, READ, WRITE, REWRITE, START | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IntroductionTwo months before the beginning of each semester the Campus Bookshop
produces a Purchase Requirements Report. This report details the books
that have to be purchased for the coming semester. In the past this was
done manually but now management have decided to computerise the operation. You are required to write a program to produce a Purchase Requirements
Report from the Publisher, Book and Purchase Requirements files. The report
should be sequenced on ascending Publisher Name and should only detail
the purchase requirements for the semester under scrutiny. The semester
number (1 or 2) should be accepted from the user at the start of the program
using a simple ACCEPT and DISPLAY. File DescriptionsPurchase Requirements File (Indexed)There is a record for each book title required by a lecturer. Note that a book may be required by more than one lecturer.
Book File (Indexed)
Publisher File (Indexed)
Print SpecificationNotes 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. |