WhiteArea.java
1    package shapes;
2    
3    public class WhiteArea {
4        public static void main(String[] args) {
5    
6            double Width = .75;
7            double dotsDiameter = Width/8;
8            double dotRadius = dotsDiameter/2;
9    
10           SSquare diceFace = new SSquare(Width);
11           SCircle diceDot = new SCircle(dotRadius);
12   
13           double AllDots = 21;
14           double AreaofDots = (diceDot.area() * AllDots);
15           System.out.println("All Dots: " + AllDots);
16           System.out.println("Area of Dots: " + AreaofDots);
17   
18           double AllFaces = 6;
19           double AreaofFaces = diceFace.area() * AllFaces;
20           System.out.println("All Faces: " + AllFaces);
21           System.out.println("Area six Faces: " + AreaofFaces);
22   
23           double AreaofWhiteSpace = AreaofFaces - AreaofDots;
24           System.out.println("White Area: " + AreaofWhiteSpace);
25   
26           System.out.println("Total: " + AreaofFaces + " - " + AreaofDots + " = " + AreaofWhiteSpace );
27   
28       }
29   }
30