WhiteArea.java
1    package shapes;
2    public class WhiteArea {
3        public static void main(String[] args) {
4            //Define constants
5            double edge = 0.75;
6            double DDot = edge/8;
7            double RDot = DDot/2;
8            double amtOfDot = 21;
9            double amtOfFaces = 6;
10           //Create Objects
11           SSquare Face = new SSquare(edge);
12           SCircle Dot = new SCircle(RDot);
13           //Calculate Area
14           double AllFacesArea = Face.area()*amtOfFaces;
15           double AllDotsArea = Dot.area()*amtOfDot;
16           //White Space Calc
17           double AllWhiteSpace = AllFacesArea - AllDotsArea;
18           //Final Print
19           System.out.println("White Space on a Die of edge "+edge+" units = "+ AllWhiteSpace + " units.");
20       }
21   }
22