/* * Program to paint a blue dot in the context of the nonrepresentational * Painting world, NPW */ package shapes; public class WorkArea { public static void main(String[] args) { //desk SRectangle desk = new SRectangle(24,36); double deskArea = desk.area(); //books SRectangle books = new SRectangle(8.5,11); double booksArea = books.area() * 2.0; //glasses SCircle glasses = new SCircle(1.35); //coasters SSquare coasters = glasses.circumscribingSquare(); double coastersArea = coasters.area() * 3.0; //plates SCircle plates = new SCircle(8); double platesArea = plates.area() * 3.0; //total object area double totalObjectArea = booksArea + coastersArea + platesArea; //area not obscured double areaLeft = (deskArea - totalObjectArea); //output System.out.println("Area Not Obscured: " + areaLeft); } }