package shapes; public class YellowSpace { public static void main(String[] args) { double edgeLength = 400; SSquare BigGreySquare = new SSquare(edgeLength); SCircle disk = new SCircle(140); SSquare BigYellowDiamond = disk.inscribingSquare(); SCircle disk2 = new SCircle(110); SSquare SmallGreySquare = disk2.inscribingSquare(); SCircle disk3 = new SCircle(95); SSquare SmallYellowDiamond = disk3.inscribingSquare(); System.out.println("Big Grey Square = " + BigGreySquare.toString()); System.out.println("area of the Big Grey Square " + BigGreySquare.area()); System.out.println("Big Yellow Diamond = " + BigYellowDiamond.toString()); System.out.println("area of the Big Yellow Diamond = " + BigYellowDiamond.area()); System.out.println("Small Grey Square = " + SmallGreySquare.toString()); System.out.println("area of the Small Grey Square = " + SmallGreySquare.area()); System.out.println("Small Yellow Diamond = " + SmallYellowDiamond.toString()); System.out.println("area of the Small Yellow Diamond = " + SmallYellowDiamond.area()); System.out.println("area of the yellow space = " + (BigYellowDiamond.area() + SmallYellowDiamond.area() - SmallGreySquare.area())); //Area BigGreySquare.area(); BigYellowDiamond.area(); SmallGreySquare.area(); SmallYellowDiamond.area(); } }