ShippingContainer.java
package shapes;

import java.util.Scanner;

public class ShippingContainer {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("Enter height of shipping container:");
        double height = scanner.nextDouble();

        System.out.println("Enter width of shipping container:");
        double width = scanner.nextDouble();

        System.out.println("Enter length of shipping container:");
        double length = scanner.nextDouble();

        SRectangle rec = new SRectangle(width, length);
        SRectangle key = new SRectangle(height, rec.diagonal());
        double curtain = key.diagonal();
        double keyArea = key.area();
        double keyWidth = key.width();
        double keyHeight = key.height();

        System.out.println("The area of the container is: " + keyArea);
        System.out.println("The width of the container is: " + keyWidth);
        System.out.println("The height of the container is: " +  keyHeight);
        System.out.println("The distance across the container is: " + curtain);
    }
}