WhiteArea.java
1    package shapes;
2    
3    public class WhiteArea {
4    
5        public static void main(String[] args) {
6            SSquare die = new SSquare(0.75);
7            //length of the die is 0.75 inches and the diameter of each dot is one-eighth the edge length.
8            SCircle dot = new SCircle((0.75 / 8) / 2);
9            // There are 6 sides of a die so multiple by 6
10           System.out.println("area of 6 faces = " + die.area() * 6);
11           // find area of 21 dots
12           System.out.println("area of 21 dots = " + dot.area() * 21);
13           // subtract the area of dots from the area of the die to get the area of the white space
14           System.out.println("area of white area = " + ((die.area() * 6) - (dot.area() * 21)));
15   
16       }
17   }