1 package Shapes; 2 3 import shapes.SCircle; 4 import shapes.SSquare; 5 6 public class GreySpace { 7 public static void main(String[]args){ 8 // Numbers to work with 9 int distance = 60; 10 int Biggreysquare = 750; 11 int smallgreysquare = 45; 12 13 14 // All the computations 15 SSquare Greysquare = new SSquare(Biggreysquare); 16 // For big yellow square 17 SCircle bigyellowcircle = new SCircle((Biggreysquare/2) -distance); 18 SSquare bigyellowSquare = bigyellowcircle.inscribingSquare(); 19 // For small grey square 20 SCircle minigreycircle = new SCircle(((smallgreysquare/2)-distance)); 21 SSquare minigreysquare = minigreycircle.inscribingSquare(); 22 double Areaofgrey = (minigreysquare.area()+Greysquare.area()+bigyellowSquare.area()); 23 System.out.println("The area of the Grey "+Areaofgrey); 24 25 } 26 } 27