/home/jfernan6/NetBeansProjects/CSX/src/shapes/BlackArea.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package shapes;
 7 
 8 /**
 9  *
10  * @author jfernan6
11  */
12 public class BlackArea {
13 
14     /**
15      * @param args the command line arguments
16      */
17     public static void main(String[] args) {
18        double lengthofcards = 2.25;
19        double widthofcards = 3.5;
20        double sidesofglass = 2.1;
21        
22         
23         
24         SSquare table = new SSquare(39);
25         SRectangle cards = new SRectangle(lengthofcards,widthofcards);
26        SSquare bottomofglass = new SSquare(sidesofglass);
27        System.out.println(bottomofglass.circumscribingCircle());
28        SCircle coasters = new SCircle(1.4849242404917498);
29        double areaobscured = (cards.area()* 2) + (coasters.area()*4);
30        double areanotobscured = table.area() - areaobscured;
31         System.out.println("Area not obscured =" + areanotobscured);        
32           }   
33     }
34     
35 
36