/home/rkanin/NetBeansProjects/CS1/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  *
11  * @author rkanin
12  */
13 public class BlackArea {
14 
15     /**
16      * @param args the command line arguments
17      */
18     public static void main(String[] args) {
19         int BlackCardTableSide = 39;
20         double cardWidth = 2.25;
21         double cardHeight = 3.5;
22         double SquareGlassSide = 2.1;
23         
24         int NumberOfCoasters = 4;
25         int NumberOfDecks = 2;
26         
27         
28         SRectangle vDeck = new SRectangle(cardHeight,cardWidth);
29         SSquare glass = new SSquare(SquareGlassSide);
30         SCircle coaster = glass.inscribingCircle();
31         SSquare table = new SSquare(BlackCardTableSide);
32         
33         double vDeckArea = vDeck.area();
34         double tableArea = table.area();
35         double coasterArea = coaster.area();
36         
37         double TotalObjectArea = ((vDeckArea * NumberOfDecks) + (coasterArea * NumberOfCoasters));
38         double ClearTableArea = (tableArea - TotalObjectArea);
39         System.out.println("The total nonobscured area is " + ClearTableArea);
40         
41         
42         
43     }
44     
45 }
46