/home/evankemp/NetBeansProjects/CS1/src/shapes/ShapesThing.java
 1 /*
 2  * exploring the computationalsolution to simple geometrical problems 
 3  * by the construction of basic shapes
 4  */
 5 package shapes;
 6 
 7 import painter.SPainter;
 8 
 9 /**
10  *
11  * @author evankemp
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         
25         SCircle disk = square.inscribingCircle();
26         System.out.println("disk = " + disk.toString());
27         System.out.println("area of disk = " + disk.area());
28         System.out.println("perimeter of disk = " + disk.perimeter());
29         
30         SSquare diamond = disk.inscribingSquare();
31         System.out.println("diamond = " + diamond.toString());
32         System.out.println("area of diamond = " + diamond.area());
33        
34     }
35     
36 }
37