/**
   Test class driver for Dart class.
*/
public class ExP7_16
{
   public static void main (String[] args)
   {
      Dart myDart = new Dart();
      final int TRIES1 = 10000;
      final int TRIES2 = 100000;
      final double AREA_OF_SQUARE = 4.0;

      for (int i = 1; i <= TRIES1; i++)
         myDart.throwDart();
      
      System.out.println("Tries / Hits = "
         + ((double) myDart.getHits() * AREA_OF_SQUARE)
         / myDart.getTries());

      for (int i = TRIES1 + 1; i <= TRIES2; i++)
         myDart.throwDart();
      
      System.out.println("Tries / Hits = "
         + ((double) myDart.getHits() * AREA_OF_SQUARE)
         / myDart.getTries());
   }
}