//creating a messy table package shapes; import shapes.SRectangle; import shapes.SCircle; import shapes.SSquare; public class WorkArea { public static void main(String[] args){ //finding the area of the desk SRectangle desk = new SRectangle(24,36); System.out.println("desk = " + desk.toString()); System.out.println("Area of the desk = " + desk.area()); //finding the area of two books SRectangle books = new SRectangle(8.5,11); System.out.println("book = " + desk.toString()); System.out.println("Area of the two books = " + 2*books.area()); //finding the area of plate SCircle plates = new SCircle(8); System.out.println("plates = " + plates.toString()); System.out.println("Area of three plates = " + 3*plates.area() ); // finding the area of the glass SCircle glass = new SCircle(1.35); System.out.println("glass " + glass.toString()); System.out.println("Area of three glasses " + 3*glass.area()); //finding the area of the coaster using the radius of glass SSquare coaster = glass.circumscribingSquare(); System.out.println("coaster = " + coaster.toString()); System.out.println("area of three coasters = " + 3*coaster.area()); //area of the object in the desk double objects = ((2* books.area() + 3* plates.area()) + 3* coaster.area()); System.out.println("Area occupied by the objects = " + objects); //area of the disk not occupies double result = (desk.area() - objects); System.out.println("The area not occupied in the desk = " +result); } }