/home/kchan2/NetBeansProjects/CS1/src/shapes/ShapesThing.java
 1 /*
 2  * A program that affords opportunities to explore the computational 
 3  * solution to simple geometrical problems by means of construction 
 4  * and use of basic shapes.
 5  */
 6 
 7 package shapes;
 8 
 9 /**
10  *
11  * @author kchan2
12  */
13 public class ShapesThing {
14 
15     /**
16      * @param args the command line arguments
17      */
18     public static void main(String[] args) {
19         SSquare square = new SSquare(400);
20         System.out.println("square = " + square.toString());
21         System.out.println("area of square = " + square.area());
22         System.out.println("perimeter of square = " + square.perimeter());
23         System.out.println("diagonal of square = " + square.diagonal());
24         SCircle disk = square.inscribingCircle();
25         System.out.println("disk = " + disk.toString());
26         System.out.println("area of disk = " + disk.area());
27         System.out.println("perimeter of disk = " + disk.perimeter());
28         SSquare diamond = disk.inscribingSquare();
29         System.out.println("diamond = " + diamond.toString());
30         System.out.println("are fo diamond = " + diamond.area());
31     }
32     
33 }
34