title: Program Print Sum Given Nth Term 1
signature: function program_print_sum_given_nth_term_1(n)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return abs(actual - expected) < 1e-06
  end
  
  function driver(n, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(n), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver(42, 1764.0);
      @printf("TEST-0...%s\n",result);
      
      result = driver(40, 1600.0);
      @printf("TEST-1...%s\n",result);
      
      result = driver(67, 4489.0);
      @printf("TEST-2...%s\n",result);
      
      result = driver(73, 5329.0);
      @printf("TEST-3...%s\n",result);
      
      result = driver(18, 324.0);
      @printf("TEST-4...%s\n",result);
      
      result = driver(16, 256.0);
      @printf("TEST-5...%s\n",result);
      
      result = driver(74, 5476.0);
      @printf("TEST-6...%s\n",result);
      
      result = driver(33, 1089.0);
      @printf("TEST-7...%s\n",result);
      
      result = driver(92, 8464.0);
      @printf("TEST-8...%s\n",result);
      
      result = driver(22, 484.0);
      @printf("TEST-9...%s\n",result);
      
  end
  
  main()
source_py: def program_print_sum_given_nth_term_1(n):
      return math.pow(n, 2)
source_cpp: int program_print_sum_given_nth_term_1(long n) {
    return pow ( n, 2 );
  }