///This program explores how to work with the geometric problem, THE MESSY DESK, ///and how to print out the outputs of numerous shapes package shapes; public class WorkArea { public static void main(String[] args) { SRectangle desk = new SRectangle(24.0,36.0); System.out.println("desk =" + desk.toString()); SRectangle book = new SRectangle(8.5,11.0); System.out.println("book =" + book.toString()); System.out.println("area of book= " + book.area()); SCircle plate = new SCircle(8.0); System.out.println("plate =" + plate.toString()); System.out.println("area of plate= " + plate.area()); SCircle glass = new SCircle(1.35); System.out.println("glass =" + glass.toString()); System.out.println("area of glass= " + glass.area()); SSquare coaster = glass.circumscribingSquare(); System.out.println("coaster =" + coaster.toString()); System.out.println("area of coaster= " + coaster.area()); double DeskObjectsArea = (2.0 * book.area()) + (3.0 * plate.area()) + (3.0 * coaster.area()); System.out.println("collective area of the objects on the desk=" + DeskObjectsArea); System.out.println("Area of desk not obscured by objects =" + (desk.area() - DeskObjectsArea)); } }