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 9 public class WorkArea { 10 11 public static void main(String[] args) { 12 13 14 SRectangle desk = new SRectangle(24, 36); 15 SRectangle books = new SRectangle(11, 8.5); 16 SCircle drinkingGlasses = new SCircle(1.35); 17 SSquare coasters = drinkingGlasses.circumscribingSquare(); 18 SCircle plates = new SCircle(8); 19 20 double areaOfObjects = ( ( 2 * books.area() ) + ( 3 * coasters.area() ) + ( 3 * plates.area() ) ); 21 double WorkArea = ( desk.area() - areaOfObjects ); 22 System.out.println("Work Area = " + WorkArea + " in^2"); 23 24 } 25 }