title: Program For Surface Area Of Octahedron
signature: pub fn program_for_surface_area_of_octahedron(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(
        1449.255716877097, 
        7275798.574924052
      ));
      
      println!("TEST-1...{}", driver(
        -8772.104874265995, 
        266562009.34357828
      ));
      
      println!("TEST-2...{}", driver(
        2948.419328234334, 
        30114046.875937637
      ));
      
      println!("TEST-3...{}", driver(
        -1184.220109553511, 
        4857977.358664159
      ));
      
      println!("TEST-4...{}", driver(
        7422.825800698956, 
        190866258.51879707
      ));
      
      println!("TEST-5...{}", driver(
        -5808.280006171851, 
        116865336.10679008
      ));
      
      println!("TEST-6...{}", driver(
        829.8963781665169, 
        2385823.7719733207
      ));
      
      println!("TEST-7...{}", driver(
        -7368.438572511732, 
        188079541.63799432
      ));
      
      println!("TEST-8...{}", driver(
        5572.033890611617, 
        107551908.5552799
      ));
      
      println!("TEST-9...{}", driver(
        -3998.9441642787706, 
        55396369.52612884
      ));
      
  }
source_py: def program_for_surface_area_of_octahedron(side):
      return ((2 * math.sqrt(3)) * (side * side))
source_cpp: double program_for_surface_area_of_octahedron(double side) {
    return ( 2 * ( sqrt ( 3 ) ) * ( side * side ) );
  }