ShapesThing.java
1    /* 
2     * This program affords opportunities to explore the computational 
3     * solution to simple geometrical problems by means of the construction 
4     * and use of basic shapes 
5     */
6    
7    package shapes;
8    
9    public class ShapesThing {
10       public static void main (String[] args){
11           SSquare square = new SSquare (400);
12           System.out.println("square = " + square.toString());
13           System.out.println("area of square = " + square.area());
14           System.out.println("perimeter of square = " + square.perimeter());
15           System.out.println("diagonal of square = " + square.diagonal());
16   
17           SCircle disk = square.inscribingCircle();
18           System.out.println("disk = " + disk.toString());
19           System.out.println("area of disk = " + disk.area());
20           System.out.println("perimeter of disk = " + disk.perimeter());
21   
22           SSquare diamond = disk.inscribingSquare();
23           System.out.println("diamond = " + diamond.toString());
24           System.out.println("area of diamond = " + diamond.area());
25       }
26   }
27