ShippingContainer.java
1    package shapes;
2    
3    import java.util.Scanner;
4    import shapes.SRectangle;
5    
6    public class ShippingContainer {
7        public static void main(String[] args) {
8            Scanner sc = new Scanner(System.in);
9            System.out.println("Enter the width of the shipping container: ");
10           double width = sc.nextDouble();
11           System.out.println("Enter the length of the shippping container: ");
12           double length = sc.nextDouble();
13           System.out.println("Enter the height of the shipping container: ");
14           double height = sc.nextDouble();
15   
16           SRectangle container = new SRectangle(width, length);
17           double distance = container.diagonal();
18           SRectangle key = new SRectangle(height, distance);
19   
20           System.out.println("The from the bottom left corner to the top right corner is..." +key.diagonal());
21   
22   
23   
24       }
25   
26   }
27