ShippingContainer.java
package shapes;

import shapes.SRectangle;
import java.util.Scanner;

public class ShippingContainer {
    public static void main(String[]args){

        Scanner scanner = new Scanner(System.in);
        System.out.println("Input the length of container ");
        double length = scanner.nextDouble();
        System.out.println("Input the width of container ");
        double width = scanner.nextDouble();
        System.out.println("Input the height of container ");
        double height = scanner.nextDouble();

        System.out.println("Demensions of container are" );
        System.out.println("The length = " + length);
        System.out.println("The width = " + width);
        System.out.println("The height = "+ height);

        SRectangle face = new SRectangle(width,length);
        SRectangle key = new SRectangle(face.diagonal(), height);

        double distance = key.diagonal();
        System.out.println("The distance between two far concer of the container = "+ distance);
    }

}