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