ShapesThing.java
1    /* 
2    * The Program allows to solve geometric problems 
3    * By using basic shapes and construction 
4    * It does this through the computer :) 
5     */
6    
7    package shapes;
8    
9    public class ShapesThing {
10   
11       public static void main(String[] args) {
12   
13           //Task 8 + Task 9
14   
15           SSquare square = new SSquare(400);
16           SCircle disk = square.inscribingCircle();
17           SSquare diamond = disk.inscribingSquare();
18           System.out.println("diagonal of square =" + square.diagonal());
19           System.out.println("square =" + square.toString());
20           System.out.println("disk =" + disk.toString());
21           System.out.println("diamond =" + diamond.toString());
22           System.out.println("area of square =" + square.area());
23           System.out.println("area of disk =" + disk.area());
24           System.out.println("area of diamond =" +diamond.area());
25           System.out.println("perimeter of square =" + square.perimeter());
26           System.out.println("perimeter of disk =" + disk.perimeter());
27   
28       }
29   
30   }
31