1 /* 2 * A program that computes the total white space on a standard die 3 */ 4 5 package shapes; 6 7 public class WhiteSpace { 8 public static void main(String[] args) { 9 // Given information 10 double edgeLength = 0.63; 11 SSquare dieFace = new SSquare(edgeLength); 12 double dieDiameter = (edgeLength/6.0); 13 SCircle dieDot = new SCircle(dieDiameter/2.0); 14 15 // Area of white space on a die 16 double whiteSpace = (dieFace.area()*6.0) - (dieDot.area()*21.0); 17 System.out.println("The total white space on a standard die is:" + whiteSpace); 18 } 19 } 20