WorkSpace.java
package shapes;

import javax.swing.SwingUtilities;
import painter.SPainter;
import shapes.SSquare;
import shapes.SRectangle;
import shapes.SCircle;


public class WorkSpace {
    public static void main(String[] args){

        int tableHeight = 30;
        int tableLength = 72;

        int booksHeight = 6;
        int bookLength = 8;

        int manualHeight = 10;
        double manualLength = 13.5;

        int plateDiameter = 6;

        double canRadius =  1.325;

        SRectangle labTable = new SRectangle(tableHeight, tableLength);
        System.out.println("Table Area = " + labTable.area());

        SRectangle book = new SRectangle(booksHeight, bookLength);
        System.out.println("Book area = " + book.area());

        SRectangle labManual = new SRectangle(manualHeight, manualLength);
        System.out.println("Lab Manual area = " + labManual.area());

        //SCircle radius = new SCircle(platediameter/2);
        // SCircle plates = new SCircle(radius);
        SCircle plates = new SCircle(plateDiameter);
        plates.s2(); //To half the size of the circle since the radius for this SCircle is 2 times more than it is supposed to be.
        System.out.println("Plates area = " + plates.area());

        SCircle can = new SCircle(canRadius);
        System.out.println("Can area = " + can.area());

        SSquare coaster = new SSquare(can.diameter());
        System.out.println("Coaster sides = " + coaster.side());
        System.out.println("Coaster area = " + coaster.area());

        double objects = (((book.area()*2)+labManual.area()+(plates.area()*6)+(coaster.area()*2)));
        double notObscured = labTable.area() - objects;
        System.out.println("Area of the desk which is not obscured by any object and may still be used for studying = " + notObscured);
    }

}