WhiteArea.java
1    package shapes;
2    
3    public class WhiteArea {
4    
5        public static void main(String[] args) {
6            SSquare edgeLength = new SSquare(0.75);
7            Double diceA = (6 * edgeLength.area());
8            SCircle dotDiamater = new SCircle(((edgeLength.side() * (1 / 8.0))/2));
9            Double dotsA = (21 * dotDiamater.area());
10           Double whiteArea = (diceA - dotsA);
11           System.out.println("The white area of a standard die with black dots given edge length 0.75 = " + whiteArea);
12   
13       }
14   }
15