Question: Easy work please! Boxes Task: Evaluate whether you can load various sizes of jars into boxes. For each test, you will input the length, width,
Easy work please! Boxes Task: Evaluate whether you can load various sizes of jars into boxes. For each test, you will input the length, width, and height of a box as well as the diameter and height of a cylindrical jar. The algorithm will determine whether each jar will fit in its corresponding box. The jar can sit upright in the box, or it can lie on its side with its top parallel to one of the sides of the box. Assume that a clearance allowance of.25 inch is needed in all three directions for the jar to fit in the box. The program will be submitted in two versions .an algorithm using pseudocode a C++ program Input: Use the following data, which can be found in the P4Boxes.txt file. Each row of data includes the 3 inner dimensions of a box (length, width, height) and the two outer dimensions of a jar (diameter, height). The dimensions are all in inches. Box: Jar: L W H D H 6.0 6.0 10.3 5.0 10.0 6.0 5.0 10.3 5.0 10.0 12.0 3.3 4.0 3.0 11.0 12.0 3.2 4.0 3.0 11.0 9.5 6.5 7.5 6.0 9.5 9.5 6.5 7.5 6.o 9.0 4.5 8.0 4.5 4.o 7.5 4.0 8.0 4.5 4.0 7.5 7.3 7.3 17.0 7.0 16.0 6.8 7.3 17.0 7.0 16.0 7.3 7.3 16.2 7.o 16.0 7.2 7.3 16.3 7.0 16.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
