Aromamora
|
||||||||||||||||||||||||||||||||
Time to complete | Allow 4-6 hours continuous | |||||||||||||||||||||||||||||||
Program Download | AromaSalesRpt.Cbl is a model answer. Don't look at this until you have made your own attempt at the program. | |||||||||||||||||||||||||||||||
Example Output |
SortSale.Dat (The sorted sales file containing
only oil records) |
|||||||||||||||||||||||||||||||
Example Input |
Sales.dat (A validated, unsorted sequential file containing details of all sales of essential and base oils to Aromamora customers) |
|||||||||||||||||||||||||||||||
Major Constructs | SORT with Input Procedure and Output Procedure, Print Files, Sequential Files, COMPUTE | |||||||||||||||||||||||||||||||
IntroductionAromamora PLC is a company which sells essential oils to Aromatherapists,
Health Shops, Chemists and other mass users of essential oils. Every month,
details of sales to these customers are gathered together into a Sales
File (SALES.DAT). A program is required which will produce a summary report
from this file showing the quantity (in millilitres) and value of the
essential oils purchased by each customer.
The Sales FileThe Sales File contains details of sales to all Aromamora customers. It is a validated, unsorted sequential file. The records in the Sales File have the following description:
NotesOil-Ids that contain an "E" represent essential
oils. Those that contain a "B" represent base oils.
|
Line 1-6 | Report Heading. To be printed on the first page of
the report only. |
Line 8 | Detail line showing the Customer-Name. Preceded by one blank line. Sales is a count of the number of essential oil sales records for the customer. Qty-Sold is the sum of the quantities of this oil (in millilitres) sold to this customer. Sales-Value is the value of the oils sold to this customer. |
Line 21-25 | Final totals. These are the sum of the Customer-Totals.
To be printed at the end of the report. Preceded by 2 blank lines. |
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.