Answered step by step
Verified Expert Solution
Link Copied!

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.
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions