WorkArea.java
1    package shapes;
2    
3    public class WorkArea {
4        public static void main(String[] args) {
5            SRectangle  Desk = new SRectangle (24,36);
6            SRectangle  books = new SRectangle(8.5,11);
7            SCircle glasses = new SCircle(1.35);
8            SCircle plates = new SCircle(8);
9            SSquare coasters = glasses.circumscribingSquare();
10   
11           System.out.println("area of the desk = " + Desk.area());
12           System.out.println("area of the books = " + books.area()*2);
13           System.out.println("area of the glasses = " + glasses.area());
14           System.out.println("area of the plates = " + plates.area()*3);
15           System.out.println("area of the coasters = " + coasters.area()*3);
16           System.out.println("total area of objects = " + ((books.area()*2)+(plates.area()*3)+(coasters.area()*3)));
17           System.out.println("total area of empty space = "+ ((Desk.area())-((books.area()*2)+(plates.area()*3)+(coasters.area()*3))));
18   
19       }
20   
21   
22   
23   }
24   
25