title: Compute Average Two Numbers Without Overflow 1
signature: function compute_average_two_numbers_without_overflow_1(a, b)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(a, b, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(a, b), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver(9, 81, 45);
      @printf("TEST-0...%s\n",result);
      
      result = driver(68, 79, 73);
      @printf("TEST-1...%s\n",result);
      
      result = driver(51, 2, 26);
      @printf("TEST-2...%s\n",result);
      
      result = driver(31, 49, 40);
      @printf("TEST-3...%s\n",result);
      
      result = driver(14, 10, 12);
      @printf("TEST-4...%s\n",result);
      
      result = driver(73, 9, 41);
      @printf("TEST-5...%s\n",result);
      
      result = driver(51, 13, 32);
      @printf("TEST-6...%s\n",result);
      
      result = driver(75, 67, 71);
      @printf("TEST-7...%s\n",result);
      
      result = driver(98, 51, 74);
      @printf("TEST-8...%s\n",result);
      
      result = driver(83, 74, 78);
      @printf("TEST-9...%s\n",result);
      
  end
  
  main()
source_py: def compute_average_two_numbers_without_overflow_1(a, b):
      return (((a // 2) + (b // 2)) + (((a % 2) + (b % 2)) // 2))
source_cpp: int compute_average_two_numbers_without_overflow_1(int a, int b) {
    return ( a / 2 ) + ( b / 2 ) + ( ( a % 2 + b % 2 ) / 2 );
  }