| /home/ffrigin/NetBeansProjects/CS1/src/shapes/WhiteArea.java |
1
2
3
4 package shapes;
5
6
7
8 @author
9
10 public class WhiteArea {
11
12
13 @param args
14
15 public static void main(String[] args) {
16
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
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
28
29 double sum = (fc * 6 - (dt * 21));
30 System.out.println("The White Area of Die = " + sum);
31
32 }
33
34 }
35