/home/mbilodea/NetBeansProjects/CS1/src/shapes/TheRoom.java |
1
2
3
4
5 package shapes;
6
7
8
9 @author
10
11 public class TheRoom {
12
13
14 @param args
15
16 public static void main(String[] args) {
17 double height = 9;
18 double width = 14;
19 double length = 21;
20 SRectangle face = new SRectangle(width, length);
21 SRectangle key = new SRectangle(height, face.diagonal());
22 double distance = key.diagonal();
23 System.out.println("The distance from corner to corner is " + distance
24 + " feet");
25 }
26
27 }
28