1 package shapes; 2 3 public class YellowSpace { 4 public static void main(String[] args){ 5 double edgelength = (400); 6 SSquare biggray = new SSquare(edgelength); 7 //Find the big yellow diamond 8 SCircle big = biggray.inscribingCircle(); 9 double distance = (60); 10 SCircle medi = new SCircle(big.radius()-distance); 11 SSquare bigyellow = medi.inscribingSquare(); 12 //Find the small gray square 13 SCircle medium = bigyellow.inscribingCircle(); 14 double distance1 = (30); 15 SCircle small = new SCircle(medium.radius()-distance1); 16 SSquare smallgray = small.inscribingSquare(); 17 //Find the small yellow diamond 18 SCircle little = smallgray.inscribingCircle(); 19 double distance2 = (15); 20 SCircle bit = new SCircle(little.radius()-distance2); 21 SSquare smallyellow = bit.inscribingSquare(); 22 //Find the area of the yellow space 23 double yellowspace = ((bigyellow.area()-smallgray.area())+smallyellow.area()); 24 System.out.println("Area of entire yellow space = " + yellowspace); 25 26 27 } 28 29 } 30