ShippingContainer.java
1    package Shapes;
2    import java.util.Scanner;
3    public class ShippingContainer
4    {
5        public static void main(String[] args)
6            {
7                Scanner scanner = new Scanner(System.in);
8            System.out.println("Please enter the width ");
9            int width =scanner.nextInt();
10           System.out.println("Please enter the height ");
11           int height =scanner.nextInt();
12           System.out.println("Please enter the length ");
13           int length =scanner.nextInt();
14           double c = Math.pow(length,2) + Math.pow(width,2);
15           double wall = Math.sqrt(c);
16           double diagonal = Math.pow(wall,2) + Math.pow(height,2);
17           double answer = Math.sqrt(diagonal);
18           System.out.println("The distance from one cornor to the other is = " + answer);
19           }
20   }