Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started