title: Compute Average Two Numbers Without Overflow
signature: compute_average_two_numbers_without_overflow <- function(a, b) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(a, b, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(a, b), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          1L, 44L, 
          22L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          6L, 61L, 
          33L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          75L, 20L, 
          47L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          51L, 17L, 
          34L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          19L, 25L, 
          22L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          82L, 98L, 
          90L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          72L, 21L, 
          46L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          48L, 41L, 
          44L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          12L, 17L, 
          14L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          41L, 80L, 
          60L
      )))
  
  }
  
  main()
source_py: def compute_average_two_numbers_without_overflow(a, b):
      return floor(((a + b) / 2))
source_cpp: int compute_average_two_numbers_without_overflow(int a, int b) {
    return ( a + b ) / 2;
  }