package shapes; import java.util.Scanner; public class ShippingContainer { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Imput the width of the container: "); double width = scanner.nextDouble(); System.out.print("Imput the length of the container: "); double length = scanner.nextDouble(); System.out.print("Imput the height of the container: "); double height = scanner.nextDouble(); System.out.print("Dimensions of the container are: "); System.out.print("The Width -->" + width); System.out.print("The Length -->" + length); System.out.print("The Height -->" + height); SRectangle face = new SRectangle(width, length); System.out.print("Face = " + face.toString()); SRectangle key = new SRectangle (face.diagonal(), height); System.out.print("Key = " + key.toString()); double distance = key.diagonal(); System.out.print("Distance between the far corners of the contianer = " + distance); } }