package shapes; public class WorkSpace { public static void main(String[] args) { // 1. Introduce variables for each of the given measurements int deskDepth = 32; int deskWidth = 60; int bookWidth = 6; int bookHeight = 9; int manualWidth = 10; double manualHeight = 13.5; double coasterDiameter = 2.6; double plateDiameter = 6.5; int numNotebooks = 2; int numCoasters = 3; int numPlates = 4; // 2. Create objects for each item on the desk SRectangle desk = new SRectangle(deskDepth, deskWidth); SRectangle book = new SRectangle(bookHeight, bookWidth); SRectangle manual = new SRectangle(manualHeight, manualWidth); SCircle can = new SCircle(coasterDiameter / 2); SCircle plate = new SCircle(plateDiameter / 2); // 3. Calculate the collective area of the objects on the desk double notebookArea = book.area(); double manualArea = manual.area(); double coasterArea = can.circumscribingSquare().area(); double plateArea = plate.area(); double totalArea = (notebookArea* numNotebooks) + manualArea + (coasterArea*numCoasters) + (plateArea*numPlates); // 4. Calculate the area of the desk not obscured by objects double workspaceArea = desk.area() - totalArea; // 5. Display the result System.out.println("The area of the workspace is " + workspaceArea + " square inches."); } }