Cobol Program 2
Cobol Program 2
Cobol Program 2
The FlyByNight travel agency sends its customers all over the world. For each booking a
record is created in the Booking Master file (BOOKING.DAT). Each customer booking is
assigned (as part of the record) a category indicating the primary reason for the booking
(i.e. Sport, Tourism, Business, Personal and Other). The file is unsorted and each record
has the following description;
The Task
A program is required which will read the Booking Master file to produce a Summary
file sequenced upon ascending Destination-Name. Each record in this file will be a
summary of all the Tourist records in the Booking file which list a particular location as
their destination. The record will show the Destination-Name, the Total-Receipts from
tourists travelling to that destination and the Total-Males, Total-Females and Total-
Children who make up that tourist population. Each record in the Summary file has the
description shown below;
Note that the Destination-Name in the Booking Master File may be all upper case or all
lower case or a mixture. Note also that "France" is not equal to "FRANCE".