Question: Using COBOL write a program using a single-level control-break process. (Unsorted input file ShipData6.txt) see file sort6.cbl The records of the input file describe ship
Using COBOL write a program using a single-level control-break process. (Unsorted input file ShipData6.txt) see file sort6.cbl
The records of the input file describe ship cargos:
I.e.
ARROWHEAD OIL 050006040
ASTONHEAD WHEAT 143500322
BULKFELLOW IRON ORE 022603547
CRANSTON COPPER 045609289
.
.
Columns: 1 - 20 Ship name
21 30 Cargo type
31 35 Units of cargo (tons, bushels, etc)
36 40 Cost per unit (pennies in last two digits 999v99)
The Output show the data sorted in ascending cargo order, with summaries for each type of cargo.
SHIPPING DATA BY CARGO
11/21/17
SHIPMENTS OF COPPER
SHIP NAME UNITS COST PER CARGO
ON BOARD UNIT VALUE
CRANSTON 4,560 $92.89 $ 332,378
HOODDOWN 785 $93.82 ???????
.
TOTAL SHIPMENT ???,????.??? ???,???,???
SHIPMENT OF IRON ORE
SHIP NAME UNITS COST PER CARGO
ON BOARD UNIT VALUE
BULKFELLOW 2,260 $35.47 $ ?????
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
