1 package shapes; 2 3 4 5 public class WorkArea { 6 public static void main(String[] args) { 7 //the desk 8 SRectangle desk = new SRectangle(24,36); 9 //the books (there will be two) 10 SRectangle book = new SRectangle (11,8.5); 11 //the coasters, which are circumscribing squares of the glasses (there will be three) 12 SCircle glass = new SCircle (1.35); 13 SSquare coaster = glass.circumscribingSquare(); 14 //the plates (there will be three) 15 SCircle plate = new SCircle (8); 16 17 double workableAreaOfDesk = desk.area() - ((book.area()*2.0) + ((coaster.area()*3.0) + (plate.area()*3.0))); 18 19 System.out.println("The workable area on the messy desk is " + workableAreaOfDesk); 20 21 } 22 } 23