1 package shapes; 2 3 public class WhiteArea { 4 public static void main(String[] args) { 5 6 //VARIABLES 7 double dieFaceLength = .75; 8 double dotDiameter = (dieFaceLength/8); 9 double dotRadius = (dotDiameter / 2); 10 SSquare die = new SSquare(dieFaceLength); 11 SCircle dots = new SCircle(dotRadius); 12 13 //AREA OF THE DIE FACES AND DOTS 14 double areaOfFace = die.area(); 15 double areaOfDie = (areaOfFace*6); 16 double areaOfDot = dots.area(); 17 double areaOfDots = (areaOfDot*21); 18 19 /* 20 AREA OF WHITE SPACE 21 total area of white space on die minus the area that the dots(black space) take up 22 */ 23 double areaOfWhiteSpace = (areaOfDie-areaOfDots); 24 System.out.println("Area Of White Space = " + areaOfWhiteSpace); 25 26 } 27 28 } 29