title: Find Harmonic Mean Using Arithmetic Mean Geometric Mean
signature: def findHarmonicMeanUsingArithmeticMeanGeometricMean(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: Double , expected: Double): Boolean = {
      (actual - expected).abs < 1e-09
  }
  
  def driver(a: Int, b: Int, expected: Double): 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(
        54, 83, 
        65.43065693430657    
      )}")   
  
  
      println(s"TEST-1...${driver(
        42, 56, 
        48.0    
      )}")   
  
  
      println(s"TEST-2...${driver(
        63, 12, 
        20.16    
      )}")   
  
  
      println(s"TEST-3...${driver(
        19, 76, 
        30.4    
      )}")   
  
  
      println(s"TEST-4...${driver(
        41, 50, 
        45.054945054945065    
      )}")   
  
  
      println(s"TEST-5...${driver(
        7, 26, 
        11.030303030303031    
      )}")   
  
  
      println(s"TEST-6...${driver(
        39, 42, 
        40.444444444444436    
      )}")   
  
  
      println(s"TEST-7...${driver(
        11, 64, 
        18.773333333333333    
      )}")   
  
  
      println(s"TEST-8...${driver(
        96, 81, 
        87.86440677966101    
      )}")   
  
  
      println(s"TEST-9...${driver(
        15, 54, 
        23.47826086956522    
      )}")   
  
  }
  
source_py: def find_harmonic_mean_using_arithmetic_mean_geometric_mean(a, b):
      AM = ((a + b) / 2)
      GM = math.sqrt((a * b))
      HM = ((GM * GM) / AM)
      return HM
source_cpp: double find_harmonic_mean_using_arithmetic_mean_geometric_mean(int a, int b) {
    double AM, GM, HM;
    AM = ( a + b ) / 2;
    GM = sqrt ( a * b );
    HM = ( GM * GM ) / AM;
    return HM;
  }