WhiteArea.java
1    package shapes;
2    
3    public class WhiteArea {
4        public static void main(String[] args){
5    
6            SSquare wD = new SSquare(.75);
7             double oneSideWhiteDieArea = wD.area();
8             System.out.println("the area of one side of the white die is "+oneSideWhiteDieArea);
9             double wDAll = (wD.area()*6);
10            double wDAllArea = wDAll;
11            System.out.println("the area of the whole white die is "+wDAllArea);
12   
13            SCircle blackDot = new SCircle (.046875);
14            System.out.println("the radius of one black dot on the white die is  " + blackDot);
15   
16   
17            double allBlackDots = (blackDot.radius() * 21);
18            System.out.println("The radius of all the black dots combined is  "+allBlackDots);
19   
20            double areaOfBlackDot = (blackDot.radius()*blackDot.radius() * Math.PI );
21            System.out.println("the area of one black dot on the white die is  "+areaOfBlackDot);
22   
23            double areaOfAllDots = (areaOfBlackDot * 21);
24            System.out.println("the area of all black dots on the white die combined is  "+areaOfAllDots);
25   
26            double areaOfWhiteSpace = wDAllArea - areaOfAllDots;
27            System.out.println("the area of the white space of the die is  "+areaOfWhiteSpace);
28   
29       }
30   }
31