1 /* 2 * Program to find the area of the yellow. 3 */ 4 5 package shapes; 6 7 import shapes.SRectangle; 8 import shapes.SSquare; 9 import shapes.SCircle; 10 11 public class YellowSpace { 12 public static void main(String[] args) { 13 double largesquareedge = 80; 14 double circle1diameter = (double)(largesquareedge - 16); 15 SCircle circle1 = new SCircle( (double)(circle1diameter/2) ); 16 SSquare diamond = circle1.inscribingSquare(); 17 double circle2diameter = (double)(diamond.side()- 8); 18 SCircle circle2 = new SCircle ( (double)(circle2diameter / 2) ); 19 SSquare smallsquare = circle2.inscribingSquare(); 20 double diamondarea = diamond.area(); 21 double smallsquarearea = smallsquare.area(); 22 double yellowspacearea = (diamondarea - smallsquarearea) ; 23 System.out.println("The Area Of The Yellow : " + yellowspacearea); 24 } 25 } 26 27