package shapes; import java.util.Scanner; public class ShippingContainer { public static void main (String [] args) { Scanner scan = new Scanner(System.in); System.out.print("Enter Shipping Container Width: "); int Width = scan.nextInt(); System.out.print("Enter Shipping Container Length: "); int Length = scan.nextInt(); System.out.print("Enter Shipping Container Height: "); int Height = scan.nextInt(); SRectangle Face = new SRectangle(Length,Width); double DiagonalFace = Face.diagonal(); SRectangle Key = new SRectangle(Height,DiagonalFace); double Distance = Key.diagonal(); System.out.println("The diagonal distance between the two far corners is = " + Distance); } }