package shape; import shapes.SCircle; import shapes.SSquare; public class WhiteArea { public static void main (String [] args) { double edgelength = 0.75; SSquare square = new SSquare(edgelength); double dieface = square.area(); System.out.println("area of dieface="+dieface); double die =dieface*6; System.out.println("area of die="+(dieface*6)); double dotdmt = (edgelength/8); System.out.println("diameter of dot="+dotdmt); double dotradius =(dotdmt/2); System.out.println("radius of dot="+dotradius); double onedotarea = Math.PI* Math.pow(dotradius,2); System.out.println("area of one dot="+onedotarea); double alldots = (21*onedotarea); System.out.println("area of all dots="+alldots); double diedot = (die-alldots); System.out.println("the white area of a standard while die with black dots="+diedot); } }