1 /* 2 * This program will explore the computational solution to the available work space on a desk by means of the 3 * construction and use of basic shapes 4 */ 5 6 package shapes; 7 8 public class WorkArea { 9 10 public static void main(String[] args) { 11 SRectangle desk = new SRectangle(24, 36); 12 SRectangle books = new SRectangle(11, 8.5); 13 SCircle drinkingGlasses = new SCircle(1.35); 14 SSquare coasters = drinkingGlasses.circumscribingSquare(); 15 SCircle plates = new SCircle(8); 16 double areaOfObjects = ( ( 2 * books.area() ) + ( 3 * coasters.area() ) + ( 3 * plates.area() ) ); 17 double WorkArea = ( desk.area() - areaOfObjects ); 18 System.out.println("Work Area = " + WorkArea + " in^2"); 19 } 20 } 21