1 package shapes; 2 //note variables in inches 3 //note there is one desk... two books... three coasters... and five plates. 4 public class WorkArea { 5 public static void main(String[] args) { 6 double depthDesk = (26.0); 7 double widthDesk = (60.0); 8 double widthBook = (7.0); 9 double lengthBook = (10.0); 10 double canRadius = (1.25); 11 double plateRadius = (5.5); 12 SRectangle desk = new SRectangle(depthDesk,widthDesk); 13 SRectangle book = new SRectangle(widthBook,lengthBook); 14 SCircle can = new SCircle(canRadius); 15 /*soda can is sitting on coaster which is square shaped it must touch 16 *touch the edges of the square making the square circumscribe around it. 17 * */ 18 SSquare coaster = can.circumscribingSquare(); 19 SCircle plate = new SCircle(plateRadius); 20 double areaOfObjectsOnDesk = (2*(book.area())+3*(coaster.area())+5*(plate.area())); 21 double areaOnDeskNotOccupiedByObjects = (desk.area() - areaOfObjectsOnDesk); 22 System.out.println("Area of desk not obscured by any objects is " +areaOnDeskNotOccupiedByObjects + " inches!"); 23 24 } 25 } 26