Question
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
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