title: Program Calculate Area Octagon
signature: pub fn program_calculate_area_octagon(side: f64) -> f64 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: f64, expected: f64)->bool{
  return (actual - expected).abs() < 1e-09
  }
  pub fn driver(side: f64, expected: f64)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(side), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        5859.798616323926, 
        165794860.15449765
      ));
      
      println!("TEST-1...{}", driver(
        -6381.210375893524, 
        196612808.27272156
      ));
      
      println!("TEST-2...{}", driver(
        2442.246292006922, 
        28799476.852711495
      ));
      
      println!("TEST-3...{}", driver(
        -9624.81536339737, 
        447291345.3087225
      ));
      
      println!("TEST-4...{}", driver(
        8679.436805247444, 
        363738081.5089271
      ));
      
      println!("TEST-5...{}", driver(
        -2682.3245401089525, 
        34739881.027797274
      ));
      
      println!("TEST-6...{}", driver(
        7216.9161613024435, 
        251483213.5426547
      ));
      
      println!("TEST-7...{}", driver(
        -5881.789859815442, 
        167041618.6125096
      ));
      
      println!("TEST-8...{}", driver(
        2497.776395789202, 
        30124010.84898392
      ));
      
      println!("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 );
  }