/home/sjenks/NetBeansProjects/CS1/src/shapes/TheRoom.java
 1 /*
 2  * goal to find the measure of the room that is from one far corner to the 
 3  * other. Do this by using a representational drawing of the room and 
 4  * decomposition. 
 5  */
 6 package shapes;
 7 
 8 /**
 9  *
10  * @author sjenks
11  */
12 public class TheRoom {
13 
14     /**
15      * @param args the command line arguments
16      */
17     public static void main(String[] args) {
18         double heightRoom = 9.0;
19         double widthRoom = 14.0;
20         double lengthRoom = 21.0;
21         SRectangle face = new SRectangle(widthRoom,lengthRoom);
22         double heightKey = 9.0;
23         double faceDiagonal = face.diagonal();
24         double widthKey = faceDiagonal;
25         SRectangle keyCurtain = new SRectangle (heightKey, widthKey);
26         double keyDistance = keyCurtain.diagonal();
27         System.out.println("keyDistance = " + keyDistance);
28         
29     }
30     
31 }
32