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