WhiteArea.java
1    /* 
2    *This program will compute the white area of the die 
3     */
4    
5    package shapes;
6    
7    public class WhiteArea {
8        public static void main(String[] args) {
9    
10           //lists of variables
11           double edge= .75;
12           double diameter = (edge/8);
13           //area of each side
14           double areaofface= (edge*edge);
15           //dice have 6 faces
16           double totalfacearea= (6*areaofface);
17           SCircle areaofdot= new SCircle(diameter/2);
18   
19           // There are 21 dots in a dice
20           double totalareaofdot=(21*areaofdot.area());
21   
22           System.out.println("total white area="+ (totalfacearea-totalareaofdot));
23   
24       }
25   
26   }
27