1 /* 2 Program to create a standard white die with black dots 3 */ 4 5 package shapes; 6 7 8 public class WhiteArea { 9 public static void main(String[] args){ 10 double edgeLength = 19; 11 double dotDiameter = (edgeLength / 8); 12 13 SSquare dieFace = new SSquare(edgeLength); 14 SCircle dot = new SCircle(dotDiameter); 15 System.out.println(dotDiameter); 16 17 //The area of each side of the die 18 Double dieArea = (dieFace.area() * 6); 19 System.out.println("Area of die = " + dieArea); 20 21 //Total area of the white spots 22 double AreaOfWhite = (dieArea - (21 * dot.area())); 23 System.out.println("Area of white on the die = " + AreaOfWhite); 24 } 25 } 26