1 package shapes; 2 3 public class WhiteArea { 4 public static void main (String[] args) { 5 // assign all variables 6 double edgeLength = .75; 7 SSquare cube = new SSquare (edgeLength); 8 double diceArea = 6 * cube.area(); 9 double dotDiam = .75 / 8; 10 double numOfDots = 1 + 2 + 3 + 4 + 5 + 6; 11 SCircle dot = new SCircle (dotDiam / 2); 12 double dotsArea = dot.area() * numOfDots; 13 // use circle ^^ 14 15 // figure out area of white surface 16 double white = diceArea - dotsArea; 17 18 // print the white area 19 System.out.println("Area of white on the dice = " + white + " inches squared."); 20 } 21 } 22