Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN JAVA AND USE SCANNER TO READ THE FILE, MAKE THE CODE SIMPLE SO I CAN FOLLOW PLEASE, THANKS Write a program FedEx.java. You must

IN JAVA AND USE SCANNER TO READ THE FILE, MAKE THE CODE SIMPLE SO I CAN FOLLOW PLEASE, THANKS

Write a program FedEx.java. You must use a one-dimensional array of double content to store information provided in each line of the input file. The program must contain a method to perform each of the four tasks listed (in bullet points) below. Each of the methods must have exactly three parameters: three one-dimensional arrays to transfer the input data to the method.

The shipping center manages deliveries of each day in a single text file. Each text file contains exactly three lines. Each line contains n double numbers representing a dimension of n boxes. The first line represents the length, the second line represents the width, and the third line represents the height of each of the boxes. That is, each column represents the length, width, and height of a box.

The sample content of a file representing five packages to be delivered on a day:

2.00 10.00 8.00 8.00 2.00

4.50 8.45 1.20 3.00 3.50

8.00 2.50 4.00 1.00 1.5

The length, width, and height of the first box in the sample input file are 2.00, 4.50, and 8.00; the length, width, and height of the second box in the input file are 10.00, 8.45, and 2.50; so and so forth. The name of the input file is always info.txt.

Your program must output the following information on the terminal/console.

Display the volume of each of the boxes.

Display total volume of all the boxes

Display the length, width, height, and volume of the largest box (that is the box with the largest volume).

Display the length, width, height, and volume of the smallest box (that is the box with the smallest volume).

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_2

Step: 3

blur-text-image_3

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

Transactions On Large Scale Data And Knowledge Centered Systems Vi Special Issue On Database And Expert Systems Applications Lncs 7600

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2012th Edition

3642341780, 978-3642341786

More Books

Students also viewed these Databases questions

Question

2. Describe how technology can impact intercultural interaction.

Answered: 1 week ago

Question

7. Define cultural space.

Answered: 1 week ago