1 package shapes; 2 3 public class YellowSpace { 4 5 public static void main(String[] args) { 6 int BigGraySide = 400; 7 int BigYellowSide = (BigGraySide/2); 8 int SmallGraySide = (BigYellowSide/2); 9 int SmallYellowSide = (SmallGraySide/2); 10 int SmallYellowArea = (SmallYellowSide*SmallYellowSide); 11 int SmallGrayArea = ((SmallGraySide*SmallGraySide)-SmallYellowArea); 12 int BigYellowArea = ((BigYellowSide*BigYellowSide)-SmallGrayArea-SmallYellowArea); 13 int YellowArea = BigYellowArea+SmallYellowArea; 14 System.out.println("The area of the yellow space is " + YellowArea + "mm^2"); 15 } 16 }