package shapes; import shapes.SCircle; import shapes.SSquare; public class WorkArea { public static void main(String[] args){ SRectangle desk = new SRectangle(24,36); //1 SRectangle book = new SRectangle(8.5,11); //2 SCircle plate = new SCircle(8); //3 SCircle cup = new SCircle(1.35); //3 SSquare coaster = cup.circumscribingSquare(); //3 double deskArea = desk.area(); double bookArea = book.area(); double plateArea = plate.area(); double cupArea = cup.area(); double coasterArea = coaster.area(); double areaOfDeskLeft = (deskArea - ((bookArea * 2) + (plateArea * 3) + (coasterArea * 3))); System.out.println("area of the desk = " + deskArea); System.out.println("area of the book = " + bookArea); System.out.println("area of the plate = " + plateArea); System.out.println("area of the cup = " + cupArea); System.out.println("area of the coaster = " + coasterArea); System.out.println("The area left over with all the objects ontop is: " + areaOfDeskLeft); } }