ShapesThing.java
1    /* 
2     This program gives opportunities to explore the computational solution to simple geometric problems via the use and construction of basic shapes 
3     */
4    /* 
5     Exploring the computational solution to simple geometric problems by means of the construction and use of basic shapes. 
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 a square =" + square.area());
14           System.out.println("perimeter of a square =" + square.perimeter());
15           System.out.println("diagonal of a square =" + square.diagonal());
16           SCircle disk = square.inscribingCircle();
17           System.out.println("disk =" + disk.toString());
18           System.out.println("area of a disk =" + disk.area());
19           System.out.println("perimeter of a disk =" + disk.perimeter());
20           SSquare diamond = disk.inscribingSquare();
21           System.out.println("diamond =" + diamond.toString());
22           System.out.println("area of a diamond =" + diamond.area());
23   
24       }
25   }
26