1 package shapes; 2 3 public class WorkArea { 4 5 public static void main(String[] args) { 6 7 // Introduce variables 8 int deskHeight = 26; 9 int deskWidth = 60; 10 int bookHeight = 10; 11 int bookWidth = 7; 12 double canRadius = 1.25; 13 double plateRadius = 5.5; 14 15 SRectangle desk = new SRectangle(deskHeight,deskWidth); 16 SRectangle book = new SRectangle(bookHeight,bookWidth); 17 SCircle can = new SCircle(canRadius); 18 SSquare coaster = can.circumscribingSquare(); 19 SCircle plate = new SCircle(plateRadius); 20 System.out.println("Area of the desk = " + desk.area()); 21 22 23 double objectsArea = plate.area() + plate.area() + plate.area() + plate.area() + plate.area() + book.area() + book.area()+ coaster.area() + coaster.area() + coaster.area(); 24 System.out.println("Area of objects = " + objectsArea); 25 double deskSpaceArea = desk.area() - objectsArea; 26 System.out.println("Area of work area = " + deskSpaceArea); 27 //display the surface area of the desk that is not obscured by any object 28 29 30 } 31 } 32