WorkArea.java
/* 
 * A program to search the area of the desk not obscured by the objects on top of it. 
 */

package shapes;

import painter.SPainter;

import java.awt.*;

public class WorkArea {
    public static void main(String[] args) {
        double deskHegit = 24.0;
        double deskWidth = 36.0;
        SRectangle desk = new SRectangle(deskHegit,deskWidth);
        System.out.println("area of desk = " + desk.area());
        double bookHeight = 8.5;
        double bookWidth = 11.0;
        SRectangle book = new SRectangle(bookHeight,bookWidth);
        System.out.println("area of book = " + book.area());
        double booksArea = book.area()*2;
        System.out.println("area of the books = " + booksArea);
        double glassRadious = 1.35;
        SCircle glass = new SCircle(glassRadious);
        System.out.println("area of glass = " + glass.area());
        SSquare coaster = glass.circumscribingSquare();
        System.out.println("area of coaster = " + coaster.area());
        double coastersArea = coaster.area()*3;
        System.out.println("area of coasters = " + coastersArea);
        double plateRadious = 8.0;
        SCircle plate = new SCircle(plateRadious);
        System.out.println("area of plate = " + plate.area());
        double platesArea = plate.area()*3;
        System.out.println("area of plates = " + platesArea);
        double thingsarea = platesArea + coastersArea + booksArea;
        System.out.println("area of the things = " + thingsarea);
        double unusedArea = (desk.area() - thingsarea);
        System.out.println("the area of the desk not obscured by the objects = " + unusedArea);
    }
}