public double runTest(int testID){
    double pointsEarned = 0;

    System.out.println( "Test " + testID + " : " + testNames[testID] );

    try{
      switch( testID ){
      case 1: pointsEarned = test1(); break;
      case 2: pointsEarned = test2(); break;
      case 3: pointsEarned = test3(); break;
      case 4: pointsEarned = test4(); break;
      case 5: pointsEarned = test5(); break;
      case 6: pointsEarned = test6(); break;
      case 7: pointsEarned = test7(); break;
      default: 
	System.out.println( "Bad test ID " + testID );
	assert(false);
      }
     }
    catch( Exception e ){
      String s = e.toString();
      System.out.println( "Exception:\n " + s );
      e.printStackTrace(System.out);
      e.printStackTrace();
    }
      
    return pointsEarned;
  }