1 package shapes; 2 3 public class WorkArea { 4 5 //THE SOLUTION TO THE WORKAREA PROBLEM 6 public static void main(String[]args) { 7 8 int deskLength = 24; 9 int deskWidth = 36; 10 double bookLength = 8.50; 11 int bookWidth = 11; 12 double glassRadius = 1.35; 13 int dinnerPlatesRadius = 8; 14 15 16 SRectangle desk = new SRectangle(deskLength, deskWidth); 17 SRectangle book = new SRectangle(bookLength, bookWidth); 18 SCircle dinnerPlate = new SCircle(dinnerPlatesRadius); 19 SCircle glass = new SCircle(glassRadius); 20 SSquare whitecoaster = glass.circumscribingSquare(); 21 double areaOfAllObjectsOnTable = book.area() + book.area() + (whitecoaster.area() * 3) + (dinnerPlate.area() * 3); 22 23 double areaOfofTheDeskNotObscuredByTheObjectsWhichSitOnTopOfIt = desk.area() - areaOfAllObjectsOnTable; 24 25 System.out.println(" area of the desk not obscured by the objects which sit on top of it is " + areaOfofTheDeskNotObscuredByTheObjectsWhichSitOnTopOfIt + " sqaured inches" ); 26 27 28 } 29 30 31 32 } 33 34