1 package Shapes; 2 3 import shapes.SCircle; 4 import shapes.SRectangle; 5 import shapes.SSquare; 6 7 public class WorkArea 8 { 9 public static void main(String[] args) 10 { 11 SRectangle table = new SRectangle(24, 36); 12 SRectangle book = new SRectangle(8.5, 11); 13 SCircle glass = new SCircle(1.35); 14 SSquare coaster = glass.circumscribingSquare(); 15 SCircle plate = new SCircle(8); 16 17 18 double mess = book.area() * 2 + coaster.area() * 3 + plate.area() * 3; 19 System.out.println("The area of the mess is = " + mess); 20 21 double workSpace = table.area() - mess; 22 System.out.println("The amount of workable space is = " + workSpace); 23 24 } 25 } 26