In java: containerdata.txt:  438118 Vela 7335 58025 357780 Guangzhou 7821 49562 228320 Calumet 8268 42566 166336 Canadian Miner 8154 53127 688309 Empire MacMahon 7148 78880 272124 Costa Marina 8216 48293 144769 Carl D. Bradley 7702 69160 345120 Baie Comeau 7928 59558 154640 W.H. Gilcher 7432 52093 569191 Burns Harbor 7304 31962 732239 Mesabi Miner 7906 52416 579241 SS Minnow 7511 32289 732723 Western Reserve 7457 55462 342817 Osaka Express 7015 48816 353071 Gudrun Mrsk 7965 20312 110167 Georgic 8394 51067 293443 Gallic 8294 44519 621580 Monterey 7672 35540 101609 Napoli 8385 58804 376662 Nuria 7619 57902 603981 Pamela 8022 96674 603603 Robert S Pierson 7620 59019 259076 Sabrina 7389 57665 569887 William C. Moreland 8089 55155 313818 McKay 5148 61598   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.        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.   It is your chose to use a set of parallel arrays. DO NOT USE THE ARRAYLIST CLASS Your program must demonstrate the following:   1. Proper construction of a program with the proper logic, Methods and data handling 2. Ability to read and write to a file 3. Ability to use the keyboard 4. Ability to validate data 5. Implementation of a sort 6. Implementation of a search 7. Use of output formatting 8. Use of Arrays Pls make sure that it uses the containerdata.txt in the code

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In java:

containerdata.txt: 

438118
Vela
7335 58025
357780
Guangzhou
7821 49562
228320
Calumet
8268 42566
166336
Canadian Miner
8154 53127
688309
Empire MacMahon
7148 78880
272124
Costa Marina
8216 48293
144769
Carl D. Bradley
7702 69160
345120
Baie Comeau
7928 59558
154640
W.H. Gilcher
7432 52093
569191
Burns Harbor
7304 31962
732239
Mesabi Miner
7906 52416
579241
SS Minnow
7511 32289
732723
Western Reserve
7457 55462
342817
Osaka Express
7015 48816
353071
Gudrun Mrsk
7965 20312
110167
Georgic
8394 51067
293443
Gallic
8294 44519
621580
Monterey
7672 35540
101609
Napoli
8385 58804
376662
Nuria
7619 57902
603981
Pamela
8022 96674
603603
Robert S Pierson
7620 59019
259076
Sabrina
7389 57665
569887
William C. Moreland
8089 55155
313818
McKay
5148 61598

 

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.   

 

 

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. 1. Report by Container
  2. 2. Report by Ship Name
  3. 3. Query by Container
  4. 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.

 

It is your chose to use a set of parallel arrays. DO NOT USE THE ARRAYLIST CLASS Your program must demonstrate the following:

 

  • 1. Proper construction of a program with the proper logic, Methods and data handling
  • 2. Ability to read and write to a file
  • 3. Ability to use the keyboard
  • 4. Ability to validate data
  • 5. Implementation of a sort
  • 6. Implementation of a search
  • 7. Use of output formatting
  • 8. Use of Arrays

Pls make sure that it uses the containerdata.txt in the code

Expert Solution
steps

Step by step

Solved in 6 steps with 5 images

Blurred answer
Knowledge Booster
Constants and Variables
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education