WorkArea.java
1    package shapes;
2    
3    public class WorkArea {
4        public static void main(String[] args) {
5            double depthOfTable = 24;
6            double widthOfTable = 36;
7            double widthOfBook = 8.5;
8            double lengthOfBook = 11;
9            double lengthOfPlate = 8;
10           double sideOfSquareBottomGlass = 1.35;
11           SCircle plate = new SCircle(lengthOfPlate);
12           SRectangle desk = new SRectangle(depthOfTable, widthOfTable);
13           SRectangle book = new SRectangle(widthOfBook, lengthOfBook);
14           SSquare glass = new SSquare(sideOfSquareBottomGlass);
15           SCircle coaster = glass.circumscribingCircle();
16           double collectiveAreaOfObjects
17                            = (book.area() * 2) + (coaster.area() * 3) + (glass.area() * 3) + (plate.area() * 3);
18           double areaOfTableNotObscuredByObjects
19                            = desk.area() - collectiveAreaOfObjects;
20           System.out.println("The area of the table not obscured by the objects which sit on top " + "of it = " + areaOfTableNotObscuredByObjects
21                   + " square inches");
22            }
23   }
24   
25