We Pack N Ship 4 U packs and ships items using two kinds of
Solution
Please find the required program along with its output. Please see the comments against each line to understand the step.
---------------------------------
OUTPUT:
Container is: box or tube?
 box
 Enter length:
 2
 Enter width:
 4
 Enter depth:
 2
 Container is: box or tube?
 tube
 Enter length:
 3
 Enter radius:
 6
 Container is: box or tube?
 2
 Invalid option! Try again..
 Container is: box or tube?
 box
 Enter length:
 3
 Enter width:
 6
 Enter depth:
 2
 Container is: box or tube?
 box
 Enter length:
 6
 Enter width:
 8
 Enter depth:
 2
 Container is: box or tube?
 tube
 Enter length:
 1
 Enter radius:
 4
 Container is: box or tube?
 tube
 Enter length:
 4
 Enter radius:
 1
 Container is: box or tube?
 tube
 Enter length:
 5
 Enter radius:
 2
 Container is: box or tube?
 box
 Enter length:
 6
 Enter width:
 2
 Enter depth:
 6
 Container is: box or tube?
 box
 Enter length:
 4
 Enter width:
 6
 Enter depth:
 8
 Container is: box or tube?
 tube
 Enter length:
 1
 Enter radius:
 4
 Type of container: com.sabre.airmax.gui.Box
 Dimensions: [width=4.0, depth=2.0length=2.0]
 Cost: 2.8
 Type of container: com.sabre.airmax.gui.Box
 Dimensions: [width=6.0, depth=2.0length=3.0]
 Cost: 3.85
 Type of container: com.sabre.airmax.gui.Box
 Dimensions: [width=2.0, depth=6.0length=6.0]
 Cost: 4.9
 Type of container: com.sabre.airmax.gui.Box
 Dimensions: [width=8.0, depth=2.0length=6.0]
 Cost: 5.6
 Type of container: com.sabre.airmax.gui.Tube
 Dimensions: [radius=4.0length=1.0]
 Cost: 6.28
 Type of container: com.sabre.airmax.gui.Tube
 Dimensions: [radius=1.0length=4.0]
 Cost: 6.28
 Type of container: com.sabre.airmax.gui.Tube
 Dimensions: [radius=4.0length=1.0]
 Cost: 6.28
 Type of container: com.sabre.airmax.gui.Box
 Dimensions: [width=6.0, depth=8.0length=4.0]
 Cost: 6.3
 Type of container: com.sabre.airmax.gui.Tube
 Dimensions: [radius=2.0length=5.0]
 Cost: 15.7
 Type of container: com.sabre.airmax.gui.Tube
 Dimensions: [radius=6.0length=3.0]
 Cost: 28.26



