package shapes; public class YellowSpace { public static void main(String[] args){ SSquare LargeGreysquare = new SSquare(400); SCircle LargeGreycircle = LargeGreysquare.inscribingCircle(); LargeGreycircle.shrink(60); SSquare LargeYellowdimond = LargeGreycircle.inscribingSquare(); SCircle LargeYellowcircle = LargeYellowdimond.inscribingCircle(); LargeYellowcircle.shrink(30); SSquare SmallGreysquare = LargeYellowcircle.inscribingSquare(); SCircle SmallGreycircle = SmallGreysquare.inscribingCircle(); SmallGreycircle.shrink(15); SSquare SmallYellowdimond = SmallGreycircle.inscribingSquare(); System.out.println("The area of the LargeGreysquare = " + LargeGreysquare.area() + "square mm"); System.out.println("The area of the LargeYellowdimond = " + LargeYellowdimond.area() + "square mm"); System.out.println("The area of the SmallGreysquare = " + SmallGreysquare.area() + "square mm"); System.out.println("The area of the SmallYellowdimond = " + SmallYellowdimond.area() + "square mm"); System.out.println("The area of the total yellow area = " + (LargeYellowdimond.area()+SmallYellowdimond.area()-SmallGreysquare.area()) + "square mm"); } }