title: Program For Surface Area Of Octahedron
signature: double programForSurfaceAreaOfOctahedron(double side) {
test_code: #include <algorithm>
  #include <assert.h>
  #include <cstdlib>
  #include <iostream>
  #include <map>
  #include <set>
  #include <string>
  #include <tuple> 
  #include <unordered_map>
  #include <vector>
  #include <math.h>
  #include <cmath>
  #include <bits/stdc++.h>
  #include <numeric>
  #include <functional>
  
  using namespace std;
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(double actual, double expected){
      return abs(actual - expected) < 1e-09;
  }
  
  string driver(double side, double expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(side), expected)){
              return "PASSED";
          }
          return "FAILED";
      }
      catch (const std::overflow_error& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (const std::runtime_error& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (const std::exception& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (...)
      {
          return "UNK_ERROR";
      }
  }
  
  int main() {
      string result = "";
  
      result = driver(1449.255716877097, 7275798.574924052); 
      cout << "TEST-" << 0 << "..."
           <<  result
           << "\n";
  
      result = driver(-8772.104874265995, 266562009.34357828); 
      cout << "TEST-" << 1 << "..."
           <<  result
           << "\n";
  
      result = driver(2948.419328234334, 30114046.875937637); 
      cout << "TEST-" << 2 << "..."
           <<  result
           << "\n";
  
      result = driver(-1184.220109553511, 4857977.358664159); 
      cout << "TEST-" << 3 << "..."
           <<  result
           << "\n";
  
      result = driver(7422.825800698956, 190866258.51879707); 
      cout << "TEST-" << 4 << "..."
           <<  result
           << "\n";
  
      result = driver(-5808.280006171851, 116865336.10679008); 
      cout << "TEST-" << 5 << "..."
           <<  result
           << "\n";
  
      result = driver(829.8963781665169, 2385823.7719733207); 
      cout << "TEST-" << 6 << "..."
           <<  result
           << "\n";
  
      result = driver(-7368.438572511732, 188079541.63799432); 
      cout << "TEST-" << 7 << "..."
           <<  result
           << "\n";
  
      result = driver(5572.033890611617, 107551908.5552799); 
      cout << "TEST-" << 8 << "..."
           <<  result
           << "\n";
  
      result = driver(-3998.9441642787706, 55396369.52612884); 
      cout << "TEST-" << 9 << "..."
           <<  result
           << "\n";
  
      return 0;
  }
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 ) );
  }