WorkArea.java
1    package expressions;
2    
3    import shapes.SCircle;
4    import shapes.SRectangle;
5    import shapes.SSquare;
6    
7    public class WorkArea {
8        public static void main(String[] args) {
9            // Desk and desk items
10           SRectangle books = new SRectangle(7, 10);
11           SRectangle desk = new SRectangle(26, 60);
12           SCircle cans = new SCircle(1.25);
13           SCircle plates = new SCircle(5.5);
14           SSquare coaster = cans.circumscribingSquare();
15           // Areas below
16           double collectiveDeskArea = ((books.area() * 2) + desk.area() + (plates.area()* 5) + (coaster.area() * 3));
17           double deskAreaUnderMess = (desk.area() - ((books.area()* 2) + (plates.area()* 5) + (coaster.area() * 3)));
18           //Outputs
19           System.out.println("Collective desk area = " + collectiveDeskArea);
20           System.out.println("Desk area under the mess = " + deskAreaUnderMess);
21       }
22   }
23