GreySpace.java
1    package shapes;
2    
3    public class GreySpace {
4    
5        public static void main(String[] args) {
6    
7            // setting length of tablecloth
8            double largeGreySquare = 750;
9    
10           // Large grey square
11           SSquare tablecloth = new SSquare(largeGreySquare); // first large shape
12           System.out.println("Tablecloth " + tablecloth);
13           SCircle disk1 = tablecloth.inscribingCircle();// inscribing circle of shape
14   
15           // yellow diamond
16           double yellowSquare = largeGreySquare - 120;
17           SCircle diamond = new SCircle(yellowSquare/2);
18           SSquare yellowDiamond= diamond.inscribingSquare();
19           System.out.println("Yellow diamond " + yellowDiamond);
20   
21           // small grey square
22           double greySquare = yellowSquare -90;
23           SCircle disk2 = new SCircle(greySquare/2);
24           SSquare smallGreySquare = disk2.inscribingSquare();
25           System.out.println("Small Grey Square " + smallGreySquare);
26   
27   
28   
29   
30       }
31   }