YellowSpace.java
/* 
 * Program to paint a blue dot in the context of the nonrepresentational 
 * Painting world, NPW 
 */

package shapes;

import java.sql.SQLClientInfoException;

public class YellowSpace
{
    public static void main(String[] args) {
        //variables
        int bigGraySide = 400;
        int bigDistance = 60;
        int medDistance = 30;
        int smallDistance = 15;
        int bigYellowDiagonal = (bigGraySide - (2 * bigDistance));
        double bigYellowSide = Math.sqrt((bigYellowDiagonal * bigYellowDiagonal) / 2.0);
        double smallGrayDiagonal = (bigYellowSide - (2 * medDistance));
        double smallGraySide = Math.sqrt((smallGrayDiagonal * smallGrayDiagonal) / 2.0);
        double smallYellowDiagonal = (smallGraySide - (2 * smallDistance));
        double smallYellowSide = Math.sqrt((smallYellowDiagonal * smallYellowDiagonal) / 2.0);

        //creating shapes
        SSquare bigYellow = new SSquare(bigYellowSide);
        SSquare smallGrey = new SSquare(smallGraySide);
        SSquare smallYellow = new SSquare(smallYellowSide);

        //output
        System.out.println("Total Yellow Area: " + ((bigYellow.area() + smallYellow.area()) - smallGrey.area()) + " millimeters squared.");
    }
}