WorkSpace.java
1    package Shapes;
2    
3    import shapes.SCircle;
4    import shapes.SRectangle;
5    import shapes.SSquare;
6    
7    public class WorkSpace {
8        public static void main(String[] args) {
9            double deskDepth = 66;
10           double deskWidth = 152;
11           double notebookWidth = 21;
12           double notebookLength = 29.7;
13           double manualWidth = 25.4;
14           double manualLength = 30.48;
15           double canRadius = 3.175;
16           double plateRadius = 10;
17           SRectangle desk = new SRectangle(deskDepth,deskWidth);
18           SRectangle notebook = new SRectangle(notebookLength, notebookWidth);
19           SRectangle manual = new SRectangle(manualLength,manualWidth);
20           SCircle can = new SCircle(canRadius);
21           SSquare coaster = can.circumscribingSquare();
22           SCircle plate = new SCircle(plateRadius);
23           double objectsArea = ((((notebook.area() * 2) + manual.area()) + (coaster.area() * 3) + (plate.area() * 6)));
24           double clearArea = (desk.area() - objectsArea);
25           System.out.println("The area of the desk that is not obscured by any object = " + clearArea);
26       }
27   }