package shapes; public class YellowShape { public static void main(String[]args){ double lenthofgray=400; double distanceToBigDiamond=60; double Distanceofsmallgrey=30; double smallDiamondDistance=15; //for area of big diamond double radius1= ((lenthofgray/2)-distanceToBigDiamond); SCircle circle= new SCircle(radius1); SSquare bigdiamond= circle.inscribingSquare(); bigdiamond.area(); //for area of grey square double radius2= ((bigdiamond.side()/2)-Distanceofsmallgrey); SCircle circle2= new SCircle(radius2); SSquare smallgrey= circle2.inscribingSquare(); smallgrey.area(); //for area of small yellow diamond double radius3= ((smallgrey.side()/2)-smallDiamondDistance); SCircle circle3= new SCircle(radius3); SSquare smallDiamond= circle3.inscribingSquare(); smallDiamond.area(); //just the area of yellow space on the diamond double areaOfBigDiamond= bigdiamond.area()-smallgrey.area(); double totalAreaOfYellowSpace= areaOfBigDiamond+smallDiamond.area(); System.out.println("Total area of yellow space="+totalAreaOfYellowSpace); } }