WhiteArea.java
1    package shapes;
2    import javax.swing.SwingUtilities;
3    
4    public class WhiteArea {
5    
6       public static void main(String[] args) {
7            double EdgeLength = .75;
8            double DiceDiameter = EdgeLength * .125;
9            SSquare DiceFace = new SSquare(EdgeLength);
10           SCircle DiceDot = new SCircle(DiceDiameter / 2);
11           double SurfaceArea = DiceFace.area() * 6;
12           double SurfaceAreaDiceDots = DiceDot.area() * 21;
13           double TotalWhiteAreaWithBlackDots = (SurfaceArea - SurfaceAreaDiceDots);
14   
15           System.out.println("Surface Area of white area without any dots:" + SurfaceArea);
16           System.out.println("Surface Area of all the Dice Dots: " + SurfaceAreaDiceDots);
17           System.out.println("Surface Area of the white area with all the Black Dots: " + TotalWhiteAreaWithBlackDots);
18      }
19   }
20