package shapes; public class YellowSpace { public static void main(String[] args) { int bigGraySideLength = 400; int distance1 = 60; int distance2 = 30; int distance3 = 15; double bigYellowDiagonal = (bigGraySideLength - (distance1 * 2.0)); double bigYellowSideLength = (bigYellowDiagonal / Math.sqrt(2.0)); double smallGraydiagonal = (bigYellowSideLength - (distance2 * 2.0)); double smallGraySideLength = (smallGraydiagonal / Math.sqrt(2.0)); double smallYellowDiagonal = (smallGraySideLength - (distance3 * 2.0)); double smallYellowSideLength = (smallYellowDiagonal / Math.sqrt(2.0)); SSquare largeYellowDiamond = new SSquare(bigYellowSideLength); SSquare smallGraySquare = new SSquare(smallGraySideLength); SSquare smallYellowDiamond = new SSquare(smallYellowSideLength); System.out.println("Area of Yellow Space = " + ((largeYellowDiamond.area() - smallGraySquare.area()) + smallYellowDiamond.area()) + "millimeters squared"); } }