1 package shapes; 2 3 public class WhiteArea { 4 public static void main(String[] args) { 5 SSquare dieface = new SSquare(0.75); 6 SCircle diedot = new SCircle((dieface.side() * (1 / 8.0)) / 2); 7 //printing the output 8 System.out.println("lenght of the die face = " + dieface.side()); 9 System.out.println("radius of the die dot = " + diedot.radius()); 10 System.out.println("diameter of the die dot =" + diedot.diameter()); 11 //for the die total area of sides n dots 12 System.out.println("Area of 6 side of the dot face = " + dieface.area() * 6); 13 System.out.println("Area of 21 dots in the die =" + diedot.area() * 21); 14 double result = (dieface.area() * 6) - (diedot.area() * 21); 15 System.out.println("The whitearea = " + result); 16 } 17 }