WhiteArea.java
1    /* 
2         * This program will explore the computational solution to the white area of a standard white die by means of the 
3         * construction and use of basic shapes 
4         */
5    
6               package shapes;
7    
8                public class WhiteArea {
9    
10                  public static void main(String[] args) {
11   
12                      double edgeLength = 0.75;
13                      double dotDiameter = ( edgeLength / 8 );
14                      SSquare dieFace = new SSquare(edgeLength);
15                      SCircle dot = new SCircle(dotDiameter / 2 );
16   
17                      double surfaceAreaOfDie = ( dieFace.area() * 6 );
18                      double WhiteArea = ( surfaceAreaOfDie - ( dot.area() * 21 ) );
19                      System.out.println("White Area = " + WhiteArea + " in^2");
20                  }
21      }