/home/mbilodea/NetBeansProjects/CS1/src/shapes/ShapesThing.java
 1 /*
 2  * Program to explore the computational solution to simple geometrical
 3  * problems by means of the construction and use of basic shapes.
 4  */
 5 package shapes;
 6 
 7 /**
 8  *
 9  * @author mbilodea
10  */
11 public class ShapesThing {
12 
13     /**
14      * @param args the command line arguments
15      */
16     public static void main(String[] args) {
17 
18         SSquare square = new SSquare(400);
19         System.out.println("square = " + square.toString());
20         System.out.println("area of square = " + square.area());
21         System.out.println("perimeter of square = " + square.perimeter());
22         System.out.println("diagonal of square = " + square.diagonal());
23         
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("circumference of disk = " + disk.perimeter());
28         
29         SSquare diamond = disk.inscribingSquare();
30         System.out.println("diamond = " + diamond.toString());
31         System.out.println("area of diamond = " + diamond.area());   
32     }
33     
34 }
35