1 package Shapes; 2 3 import shapes.SCircle; 4 import shapes.SSquare; 5 6 public class WhiteArea { 7 public static void main(String[] args) { 8 double edgeLength = (0.75); 9 double DotDiameter = (.09375); 10 11 12 SSquare dieface = new SSquare(0.75); 13 SCircle diedot = new SCircle(0.046875); 14 15 //one-eighth of .75 is .09375 (which is the diameter), so the radius is half of that 16 17 double face1 = dieface.area() - diedot.area(); 18 double face2 = face1 - diedot.area(); 19 double face3 = face2 - diedot.area(); 20 double face4 = face3 - diedot.area(); 21 double face5 = face4 - diedot.area(); 22 double face6 = face5 - diedot.area(); 23 double WhiteArea = face1 + face2 + face3 + face4 + face5 + face6; 24 25 System.out.println("white area of die =" + WhiteArea); 26 } } 27