1 package expressions; 2 3 import shapes.SCircle; 4 import shapes.SSquare; 5 6 public class GreySpace { 7 public static void main(String[] args) { 8 double tableclothLength = 750.0; 9 SSquare tableClothLengthForArea = new SSquare(tableclothLength); 10 double yellowDiameter = (750.0 - (2 * 60.0)); 11 SCircle inscribingYellowDiamond = new SCircle(yellowDiameter/2.0); 12 SSquare yellowSquare = inscribingYellowDiamond.inscribingSquare(); 13 double grayDiameter = (yellowSquare.side() - (2 * 45.0)); 14 SCircle inscribingGrayCircle = new SCircle(grayDiameter/2.0); 15 SSquare graySquare = inscribingGrayCircle.inscribingSquare(); 16 double totalGrayArea = ((tableClothLengthForArea.area() + graySquare.area()) - yellowSquare.area()); 17 System.out.println("Total Gray Area of the tablecloth = " + totalGrayArea); 18 19 } 20 }