WhiteArea.java
/* 
 * A program to search the white area of standard die. 
 */


package shapes;

public class WhiteArea {
    public static void main (String [] args) {
        double dieEdgeLength = 0.75;
        SSquare dieOneSurface = new SSquare(dieEdgeLength);
        System.out.println("area of one surface of die = " + dieOneSurface.area());
        double dieArea = (dieOneSurface.area() * 6 );
        System.out.println("area of all surface of die = " + dieArea);
        double dotDiameter = (dieEdgeLength / 8 );
        System.out.println("diameter of dot = " + dotDiameter);
        double dotRadious = dotDiameter / 2 ;
        System.out.println("radious of dot = " + dotRadious);
        double oneDotArea = Math.PI * Math.pow(dotRadious,2);
        System.out.println("area of dot = " + oneDotArea);
        double dotsArea = oneDotArea*21;
        System.out.println("area of dots = " + dotsArea);
        double whitearea = (dieArea - dotsArea);
        System.out.println("the white area of standard die = " + whitearea);
    }
}