1 package shapes; 2 3 import java.util.Scanner; 4 5 public class ShippingContainer { 6 public static void main(String[] args){ 7 Scanner scanner = new Scanner(System.in); 8 System.out.println("Please Enter Width: "); 9 int width = scanner.nextInt(); 10 System.out.println("Please enter Length: "); 11 int length = scanner.nextInt(); 12 System.out.println("Plese enter Height: "); 13 int heigth = scanner.nextInt(); 14 double container = Math.pow(length,2) + Math.pow(width,2); 15 double wall = Math.sqrt(container); 16 double diagonal = Math.pow(wall,2) + Math.pow(heigth,2); 17 double total = Math.sqrt(diagonal); 18 System.out.println("The Distance of a shipping container from one end to another: " + total); 19 } 20 } 21