GreySpace.java
1    /* 
2     * Program about finding the area of the grey space in a table cloth that is a 
3     * grey square with a yellow diamond 60 mm from the mid points of the grey square 
4     * and another grey square that is 60 mm from the mid points of the yellow diamond 
5     */
6    
7    package shapes;
8    
9    public class GreySpace {
10   
11       public static void main(String[] args) {
12           int sideLength = 800;
13           int distance = 60*2;
14           SSquare tablecloth = new SSquare(sideLength);
15           SSquare yellowDiamond = new SSquare(sideLength - distance);
16           SSquare greySquare = new SSquare((yellowDiamond.side() - distance));
17           double greyArea = tablecloth.area() - yellowDiamond.area() + greySquare.area();
18           System.out.println("The area of the grey space: " + greyArea);
19       }
20   
21   }
22