/home/akc/NetBeansProjects/CS1/src/shapes/ShapesThing.java
 1 /*
 2  * This program affords opportunities to explore the computational solution to
 3  * simple geometrical problems by means of the construction and use of basic
 4  * shapes.
 5  */
 6 package shapes;
 7 
 8 /**
 9  *
10  * @author akc
11  */
12 public class ShapesThing {
13 
14     /**
15      * @param args the command line arguments
16      */
17     public static void main(String[] args) {
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("perimeter 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