import shapes.SCircle; import shapes.SSquare; public class YellowSpace { public static void main(String[] args) { SSquare Largest_Gray_Sqaure = new SSquare(400); System.out.println("The side length of the large gray square in milliliters = " + Largest_Gray_Sqaure.side()); double Distance_From_Mid_Point_of_Larger_Gery_Square = 60; double diameter_of_large_Yellow_Diamond_Circle = (Largest_Gray_Sqaure.side()- Distance_From_Mid_Point_of_Larger_Gery_Square); double radius_of_large_Yellow_Diamond_Circle =(diameter_of_large_Yellow_Diamond_Circle * .5); SCircle Large_Yellow_Diamond_circle = new SCircle(radius_of_large_Yellow_Diamond_Circle); SSquare Large_Yellow_Diamond = Large_Yellow_Diamond_circle.inscribingSquare(); System.out.println("The side length of the large yellow diamond in milliliters = " + Large_Yellow_Diamond.side()); double Distance_From_Mid_Point_of_Larger_Yellow_Square = (Distance_From_Mid_Point_of_Larger_Gery_Square/2); double diameter_of_small_gray_Diamond_Circle = (( 2 * Distance_From_Mid_Point_of_Larger_Yellow_Square) - Large_Yellow_Diamond.side()); double Radius_of_small_gray_Diamond_Circle = ( diameter_of_small_gray_Diamond_Circle * .5 ); SCircle small_Gray_square_Circle = new SCircle(Radius_of_small_gray_Diamond_Circle); SSquare Small_Gray_Square = small_Gray_square_Circle.inscribingSquare(); System.out.println("The side length of the small gray square in milliliters = " + Small_Gray_Square.side()); double Distance_From_Mid_Point_of_small_Gery_Square = (Distance_From_Mid_Point_of_Larger_Yellow_Square/2); double diameter_of_small_Yellow_Diamond_Circle = ((Distance_From_Mid_Point_of_small_Gery_Square * 2) - Small_Gray_Square.side()); double Radius_of_small_Yellow_Diamond_Circle = ( diameter_of_small_Yellow_Diamond_Circle * .5 ); SCircle Small_Yellow_Diamond_Circle = new SCircle( Radius_of_small_Yellow_Diamond_Circle ); SSquare small_yellow_Diamond = Small_Yellow_Diamond_Circle.inscribingSquare(); System.out.println( "The side length of the small yellow Diamond in milliliters = " + small_yellow_Diamond.side()); } }