title: Program Calculate Area Octagon
signature: programCalculateAreaOctagon(side) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(double actual, double expected){
      return (actual - expected).abs() < 1e-09;
  }
  
  String driver(side, double expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(side), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          5859.798616323926, 
          165794860.15449765)
      }");
  
      print("TEST-1...${driver(
          -6381.210375893524, 
          196612808.27272156)
      }");
  
      print("TEST-2...${driver(
          2442.246292006922, 
          28799476.852711495)
      }");
  
      print("TEST-3...${driver(
          -9624.81536339737, 
          447291345.3087225)
      }");
  
      print("TEST-4...${driver(
          8679.436805247444, 
          363738081.5089271)
      }");
  
      print("TEST-5...${driver(
          -2682.3245401089525, 
          34739881.027797274)
      }");
  
      print("TEST-6...${driver(
          7216.9161613024435, 
          251483213.5426547)
      }");
  
      print("TEST-7...${driver(
          -5881.789859815442, 
          167041618.6125096)
      }");
  
      print("TEST-8...${driver(
          2497.776395789202, 
          30124010.84898392)
      }");
  
      print("TEST-9...${driver(
          -9598.912195459263, 
          444887003.7391194)
      }");
  
      return 0;
  }
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 );
  }