1 package shapes; 2 3 public class WorkArea { 4 5 public static void main (String[] args) { 6 // assign all areas 7 SRectangle tableArea = new SRectangle(24, 36); 8 tableArea.area(); 9 10 SRectangle bookArea = new SRectangle(8.5, 11); 11 bookArea.area(); 12 13 SSquare coasterArea = new SSquare(2.7); 14 coasterArea.area(); 15 16 SCircle plateArea = new SCircle(8); 17 plateArea.area(); 18 19 20 // calculate the area of the table that is not being used 21 double notUsed = tableArea.area() - (2 * bookArea.area()) - (3 * coasterArea.area()) - (3 * plateArea.area()); 22 23 // display 24 System.out.println("Area of table not used = " + notUsed + " inches squared."); 25 } 26 27 } 28