CIS 170 Assignment # 2
Write a program to generate a report on the value of ships cargoes.
Input data file: DATA2.TXT
Input will have the following format:
1. Ship Name columns 1 15
2. Number of units columns 16 21
3. Cargo columns 22 29
4. Unit price columns 30 34 (PIC 999V99)
i.e.
BLUENOSE 240000OIL 08850
BALOCHSIDE 150500ORE 07550
Your output should have the following format:
Assignment # 2
By: John Student 02/7/2018
Shipping Report
ShipCargoUnitsUnitCargo
NamePriceValue
BluenoseOil240,00088.50$21,240,000.00
BalochsideOre150,50075.50$ 3,837,750.00
Submit in Blackboard a copy of your source code and algorithm.
The heading of your output must include: 10%
1. Your Name
2. Assignment number
3. Due date
4. Appropriate heading for data.
Your Source code must include comment for the following: 10%
1. Your Name, Assignment # and Due date
2. Program description
3. Variable (data name) dictionary
4. Code related to input and output of data
5. Formulas used in the code.
05812 07550 064400WHEAT 00980 BALOCHSIDE 330000COPPER o0325 SANTA MARIA 1750000ATS 00326 BLUENOSE IRONSIDE DALSOHN 2400000IL 1505000RE HIGHLAND 180000ALUMINUM11050 05812 07550 064400WHEAT 00980 BALOCHSIDE 330000COPPER o0325 SANTA MARIA 1750000ATS 00326 BLUENOSE IRONSIDE DALSOHN 2400000IL 1505000RE HIGHLAND 180000ALUMINUM11050