1 package shapes; 2 // Program used to compute the white area of a standard white die with black dots given that the edge length of the die is 0.75 inches and the diameter of each dot is one-eighth the edge length. 3 public class WhiteArea { 4 5 public static void main(String[] args) { 6 double dieEdgeLength = 0.75; 7 double dotDiameter = dieEdgeLength/8; 8 9 SSquare dieFace = new SSquare(dieEdgeLength); 10 SCircle dieDot = new SCircle(dotDiameter/2); 11 12 double whiteArea = ((dieFace.area() * 6) - (dieDot.area() * 21)); 13 System.out.print("white area of the standard white die = " + ((whiteArea))); 14 15 16 } 17 } 18