ShippingContainer.java
package shapes;
import java.util.Scanner;
public class ShippingContainer {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        //Request width
        System.out.println("enter width of the container: ");
        int width = sc.nextInt();

        //Request length
        System.out.println("enter length: ");
        int length = sc.nextInt();

        //Request height
        System.out.println("enter height: ");
        int height = sc.nextInt();

       
        // Create a new rectangle as the floor.
        SRectangle Floor = new SRectangle(width,length);

        // Create a new rectangle as the walls of the container.
        SRectangle wall = new SRectangle(height,length);

        // Create a diagonal of floor
        double DiagonalOfFloor = Floor.diagonal();

        //Create a key that divides the container diagonally.
        SRectangle key= new SRectangle(width,DiagonalOfFloor);

        // compute distance between one corner of floor to the top corner of ceiling
        double result = key.diagonal();

        // Displaying Result.
        System.out.println("The distance of one corner of a rectangular shipping container on the floor to its far corner on ceiling is "+result);

    }

}