title: Compute Average Two Numbers Without Overflow 1
signature: def computeAverageTwoNumbersWithoutOverflow1(a: Int, b: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(a: Int, b: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        9, 81, 
        45    
      )}")   
  
  
      println(s"TEST-1...${driver(
        68, 79, 
        73    
      )}")   
  
  
      println(s"TEST-2...${driver(
        51, 2, 
        26    
      )}")   
  
  
      println(s"TEST-3...${driver(
        31, 49, 
        40    
      )}")   
  
  
      println(s"TEST-4...${driver(
        14, 10, 
        12    
      )}")   
  
  
      println(s"TEST-5...${driver(
        73, 9, 
        41    
      )}")   
  
  
      println(s"TEST-6...${driver(
        51, 13, 
        32    
      )}")   
  
  
      println(s"TEST-7...${driver(
        75, 67, 
        71    
      )}")   
  
  
      println(s"TEST-8...${driver(
        98, 51, 
        74    
      )}")   
  
  
      println(s"TEST-9...${driver(
        83, 74, 
        78    
      )}")   
  
  }
  
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 );
  }