Question
20 10 8 4.5 8.45 12.2 8.0 2.5 4.0 1.0 15.0 18.0 3.5 3.5 3.5 6.0 5.0 10.0 using a buffer reader in java to
20 10 8
4.5 8.45 12.2
8.0 2.5 4.0
1.0 15.0 18.0
3.5 3.5 3.5
6.0 5.0 10.0
using a buffer reader in java to produce this output from the input file taking the first column as the width and the next as the height and the last column as the length and getting volume. A ball can be contained in the box the diameter of the ball will be used to ascertain what box it can enter
Sample output:
Diameter of the box =10;
number:2 Box width: 4.50 height: 8.45 length: 12.20 volume: 463.91
number:3 Box width: 8.00 height: 2.50 length: 4.00 volume: 80.00
number:4 Box width: 1.00 height: 15.00 length: 18.00 volume: 270.00
The number of boxes that can hold the ball is: 3
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