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