1 /* 2 * Program to compute the area that is not taken up by various items on the desk. 3 */ 4 5 package shapes; 6 7 public class WorkArea { 8 public static void main(String[] args){ 9 SRectangle desk = new SRectangle(24,60); 10 SRectangle book = new SRectangle(7,10); 11 SCircle glass = new SCircle(1.4); 12 SSquare coaster = glass.circumscribingSquare(); 13 SCircle plate = new SCircle(7); 14 double areaOfObjects = ((book.area() * 2) + (coaster.area() * 3) + (plate.area() *4)); 15 double finalArea = (desk.area() - areaOfObjects); 16 System.out.println("The area on the desk that is not covered: " + finalArea); 17 } 18 19 } 20