/home/ffrigin/NetBeansProjects/CS1/src/shapes/WhiteArea.java
 1 /*
 2  * Display white area of a die. By calculating the area of the faces and dots.
 3  */
 4 package shapes;
 5 
 6 /**
 7  *
 8  * @author ffrigin
 9  */
10 public class WhiteArea {
11 
12     /**
13      * @param args the command line arguments
14      */
15     public static void main(String[] args) {
16         // CALCULATING ONE FACE AREA
17         SSquare face = new SSquare(1.25);
18         System.out.println("Edge length of a Die Face  = " + face.toString());
19         System.out.println("Area of a Die Face = " + face.area());
20         double fc = face.area();
21         //CALCULATING ONE DOT AREA
22         SCircle dot = face.inscribingCircle();
23         dot.s7();
24         System.out.println("Size of a Die Dot  = " + dot.toString());
25         System.out.println("Area of a Die Dot = " + dot.area());
26         double dt = dot.area();
27         //CALCULATING THE SUM OFF ALL FACES, AND ALL DOTS, AND SUBTRACTING DOTS
28         //FROM FACES. 
29         double sum = (fc * 6 - (dt * 21));
30         System.out.println("The White Area of Die = " + sum);
31 
32     }
33 
34 }
35