WorkArea.java
1    package shapes;
2    
3    public class WorkArea {
4        public static void  main(String[] args){
5    
6    
7    // Desk
8            double wlength= 24;
9            double wwidth=36;
10           SRectangle workingdesk=  new SRectangle(wlength, wwidth);
11           double areaDesk= workingdesk.area();
12           System.out.println("area of rectangle= "+ workingdesk.area());
13   //books
14           double blength=8.5;
15           double bWidth= 11;
16   
17           SRectangle book= new SRectangle(blength,bWidth);
18           book.area();
19           System.out.println("area of book=" +book.area());
20   // Glass and coaster
21           double radius=1.35;
22           SCircle glass= new SCircle(radius);
23             SSquare coaster= glass.circumscribingSquare();
24             coaster.area();
25             System.out.println("area of coaster=" +coaster.area());
26   // Plates
27           double platesradius=8;
28           SCircle plates= new SCircle(platesradius);
29           plates.area();
30           System.out.println("area of plates="+plates.area());
31   
32       //Math
33           double stuffArea= +((book.area()*2)+(coaster.area()*3)+(plates.area()*3));
34           System.out.println("stuffArea=" +stuffArea);
35   
36           double sumArea= (areaDesk-stuffArea);
37           System.out.println("sumArea=" +sumArea);
38   
39   
40   
41   
42   
43       }
44   
45   
46   }
47   
48