Cargo Container Report. You will be producing a program which will allow the user to generate the container report on the following page in Container Number order or Ship Name order. The program will also the user to lookup the data for any given Container by number. The % cargo weight is the percentage of the cargo of the gross weight (cargo weight/gross weight), % total is the percentage of the cargo for that container of the total amount of cargo unloaded (cargo weight for the container/ total cargo unloaded. Hint: you are expected to use methods for your calculations. The accompanying file has the data for the containers unloaded today. The data includes container number int ship name. String tare weight of the container (empty weight) int the gross weight (container plus the cargo). Int You will need to computer the cargo weight as the gross weight minus the tare weight. If you have issues reading the data with the String, you may remove the String. However, you will lose points. The program will need to allow the user to send the report to the screen or to a file (user's choice). You will provide a menu for the user as follows: Menu 1. Report by Container 2. Report by Ship Name 3. Query by Container 4. Exit Once a report is selected the user will be asked if the report is to be sent to 1. -Screen, 2. File or 3. -Both.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question
This is a Java program. Only use a set of parallel arrays
Cargo Container Report.
You will be producing a program which will allow the user to generate the container report on the following page in
Container Number order or Ship Name order. The program will also the user to lookup the data for any given Container
by number. The % cargo weight is the percentage of the cargo of the gross weight (cargo weight/gross weight), % total
is the percentage of the cargo for that container of the total amount of cargo unloaded (cargo weight for the container/
total cargo unloaded. Hint: you are expected to use methods for your calculations.
The accompanying file has the data for the containers unloaded today. The data includes
container number int
ship name. String
tare weight of the container (empty weight) int
the gross weight (container plus the cargo). Int
You will need to computer the cargo weight as the gross weight minus the tare weight.
If you have issues reading the data with the String, you may remove the String. However, you will lose points.
The program will need to allow the user to send the report to the screen or to a file (user's choice). You will provide a
menu for the user as follows:
Menu
1. Report by Container
2. Report by Ship Name
3. Query by Container
4. Exit
Once a report is selected the user will be asked if the report is to be sent to 1. -Screen, 2. File or 3. -Both.
Transcribed Image Text:Cargo Container Report. You will be producing a program which will allow the user to generate the container report on the following page in Container Number order or Ship Name order. The program will also the user to lookup the data for any given Container by number. The % cargo weight is the percentage of the cargo of the gross weight (cargo weight/gross weight), % total is the percentage of the cargo for that container of the total amount of cargo unloaded (cargo weight for the container/ total cargo unloaded. Hint: you are expected to use methods for your calculations. The accompanying file has the data for the containers unloaded today. The data includes container number int ship name. String tare weight of the container (empty weight) int the gross weight (container plus the cargo). Int You will need to computer the cargo weight as the gross weight minus the tare weight. If you have issues reading the data with the String, you may remove the String. However, you will lose points. The program will need to allow the user to send the report to the screen or to a file (user's choice). You will provide a menu for the user as follows: Menu 1. Report by Container 2. Report by Ship Name 3. Query by Container 4. Exit Once a report is selected the user will be asked if the report is to be sent to 1. -Screen, 2. File or 3. -Both.
Container
Number
Ship
Name
438118 Vela
357780 Guangzhou
228320 Calumet
166336 Canadian Miner
688309 Empire MacMahon
Costa Marina
272124
144769 Carl D. Bradley
345120 Baie Comeau
154640 W.H. Gilcher
569191 Burns Harbor
732239 Mesabi Miner
SS Minnow
579241
732723 Western Reserve
342817 Osaka Express
353071 Gudrun Mærsk
110167 Georgic
293443 Gallic
621580 Monterey
101609
Napoli
Nuria
376662
603981 Pamela
603603 Robert S Pierson
259076 Sabrina
569887 William C. Moreland
313818 McKay
Total
Tare
Weight
7335
7821
8268
8154
7148
8216
7702
7928
7432
7304
7906
7511
7457
7015
7965
8394
8294
7672
8385
7619
8022
7620
7389
8089
5148
Gross
weight
58025
49562
42566
53127
78880
48293
69160
59558
52093
31962
52416
32289
55462
48816
20312
51067
44519
35540
58804
57902
96674
59019
57665
55155
61598
184460 1330464
Cargo
Weight
% Cargo % of Total
Weight
Cargo Wgt
50691
87.36%
41741 84.22%
34298
80.58%
44973 84.65%
71732 90.94%
40077
82.99%
61458
88.86%
51630
86.69%
44661
85.73%
24658
77.15%
44510 84.92%
24778 76.74%
48005 86.55%
41802 85.63%
12347 60.78%
42673
83.56%
36225
81.37%
27868 78.41%
50419
85.74%
50283 86.84%
88652 91.70%
51398 87.09%
50276
87.19%
47066 85.33%
56450 91.64%
1138669
4.45%
3.67%
3.01%
3.95%
6.30%
3.52%
5.40%
4.53%
3.92%
2.17%
3.91%
2.18%
4.22%
3.67%
1.08%
3.75%
3.18%
2.45%
4.43%
4.42%
7.79%
4.51%
4.42%
4.13%
4.96%
Transcribed Image Text:Container Number Ship Name 438118 Vela 357780 Guangzhou 228320 Calumet 166336 Canadian Miner 688309 Empire MacMahon Costa Marina 272124 144769 Carl D. Bradley 345120 Baie Comeau 154640 W.H. Gilcher 569191 Burns Harbor 732239 Mesabi Miner SS Minnow 579241 732723 Western Reserve 342817 Osaka Express 353071 Gudrun Mærsk 110167 Georgic 293443 Gallic 621580 Monterey 101609 Napoli Nuria 376662 603981 Pamela 603603 Robert S Pierson 259076 Sabrina 569887 William C. Moreland 313818 McKay Total Tare Weight 7335 7821 8268 8154 7148 8216 7702 7928 7432 7304 7906 7511 7457 7015 7965 8394 8294 7672 8385 7619 8022 7620 7389 8089 5148 Gross weight 58025 49562 42566 53127 78880 48293 69160 59558 52093 31962 52416 32289 55462 48816 20312 51067 44519 35540 58804 57902 96674 59019 57665 55155 61598 184460 1330464 Cargo Weight % Cargo % of Total Weight Cargo Wgt 50691 87.36% 41741 84.22% 34298 80.58% 44973 84.65% 71732 90.94% 40077 82.99% 61458 88.86% 51630 86.69% 44661 85.73% 24658 77.15% 44510 84.92% 24778 76.74% 48005 86.55% 41802 85.63% 12347 60.78% 42673 83.56% 36225 81.37% 27868 78.41% 50419 85.74% 50283 86.84% 88652 91.70% 51398 87.09% 50276 87.19% 47066 85.33% 56450 91.64% 1138669 4.45% 3.67% 3.01% 3.95% 6.30% 3.52% 5.40% 4.53% 3.92% 2.17% 3.91% 2.18% 4.22% 3.67% 1.08% 3.75% 3.18% 2.45% 4.43% 4.42% 7.79% 4.51% 4.42% 4.13% 4.96%
Expert Solution
steps

Step by step

Solved in 7 steps with 7 images

Blurred answer
Knowledge Booster
Data Binding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage