package shape; import shapes.SRectangle; import java.util.Scanner; public class ShippingContainer { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double width = scanner.nextDouble(); System.out.println("width of container="+width); double length = scanner.nextDouble(); System.out.println("length of container ="+length); double height = scanner.nextDouble(); System.out.println("height of container="+height); SRectangle face = new SRectangle(width, length); SRectangle key = new SRectangle(face.diagonal(), height); double distance = key.diagonal(); System.out.println("distance between two far corners of the container=" + distance); } }