WorkArea.java
1    
2    
3    package shapes;
4    
5    //import shapes.SCircle;
6    //import shapes.SRectangle;
7    
8    
9    
10   public class WorkArea {
11       public static void main(String[] args) {
12           //This program affords opportunities to explore the computational solution to simple geometrical problems by
13           //means of the construction and use of basic shapes.
14           SRectangle desk = new SRectangle(24, 36);
15           SRectangle book = new SRectangle(8.5,11);
16           SCircle cup = new SCircle (1.35);
17           SCircle plate = new SCircle (8);
18           SSquare coaster = new SSquare (cup.diameter());
19           System.out.println("area desk = " + desk.area());
20           System.out.println("area cup = " + cup.area());
21           System.out.println("area plate = " + plate.area());
22           System.out.println("area book = " + book.area());
23           System.out.println("open area desk = " + (desk.area() - (((coaster.area()*3) + (book.area()*2) + (plate.area()*3)))));
24   
25   
26   
27   
28   
29       }
30   }
31