title: Program Calculate Area Octagon
signature: def programCalculateAreaOctagon(side: Double) = {
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(side: Double, expected: Double): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(side),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        5859.798616323926, 
        165794860.15449765    
      )}")   
  
  
      println(s"TEST-1...${driver(
        -6381.210375893524, 
        196612808.27272156    
      )}")   
  
  
      println(s"TEST-2...${driver(
        2442.246292006922, 
        28799476.852711495    
      )}")   
  
  
      println(s"TEST-3...${driver(
        -9624.81536339737, 
        447291345.3087225    
      )}")   
  
  
      println(s"TEST-4...${driver(
        8679.436805247444, 
        363738081.5089271    
      )}")   
  
  
      println(s"TEST-5...${driver(
        -2682.3245401089525, 
        34739881.027797274    
      )}")   
  
  
      println(s"TEST-6...${driver(
        7216.9161613024435, 
        251483213.5426547    
      )}")   
  
  
      println(s"TEST-7...${driver(
        -5881.789859815442, 
        167041618.6125096    
      )}")   
  
  
      println(s"TEST-8...${driver(
        2497.776395789202, 
        30124010.84898392    
      )}")   
  
  
      println(s"TEST-9...${driver(
        -9598.912195459263, 
        444887003.7391194    
      )}")   
  
  }
  
source_py: def program_calculate_area_octagon(side):
      return (((2 * (1 + math.sqrt(2))) * side) * side)
source_cpp: double program_calculate_area_octagon(double side) {
    return ( float ) ( 2 * ( 1 + sqrt ( 2 ) ) * side * side );
  }