WorkSpace.java
1    package shapes;
2    
3    import shapes.SRectangle;
4    import shapes.SCircle;
5    import shapes.SSquare;
6    import javax.swing.SwingUtilities;
7    
8    public class WorkSpace {
9        public static void main(String[] args) {
10           double deskDepth = 66;
11           double deskWidth = 152;
12           SRectangle desk = new SRectangle(deskDepth, deskWidth);
13   
14           double notebookHeight = 21;
15           double notebookWidth = 29.7;
16           SRectangle notebook = new SRectangle(notebookWidth, notebookHeight);
17   
18           double labManualHeight = 25.4;
19           double labManualWidth = 30.48;
20           SRectangle labManual = new SRectangle(labManualWidth, labManualHeight);
21   
22           double cansRadius = 3.175;
23           SCircle cans = new SCircle(cansRadius);
24           SSquare coasters = cans.circumscribingSquare();
25   
26           SCircle plates = new SCircle(20 /2);
27   
28           double areaOfObjects = (2 * notebook.area()) + labManual.area() + (3 * coasters.area() + (6 * plates.area()));
29           double areaOfOpenDeskSpace = desk.area() - areaOfObjects;
30           System.out.println("The area of all the objects is... " + areaOfObjects);
31           System.out.println("The area of open desk space is... " + areaOfOpenDeskSpace);
32   
33   
34   
35   
36   
37   
38   
39       }
40   }
41