title: Program To Find The Area Of Pentagon
signature: double programToFindTheAreaOfPentagon(double a) {
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 a, double expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(a), 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(2009.019461888707, 6944120.6857642615); 
      cout << "TEST-" << 0 << "..."
           <<  result
           << "\n";
  
      result = driver(-1480.5131394215787, 3771147.371815937); 
      cout << "TEST-" << 1 << "..."
           <<  result
           << "\n";
  
      result = driver(357.7870347569567, 220240.9998483103); 
      cout << "TEST-" << 2 << "..."
           <<  result
           << "\n";
  
      result = driver(-8040.293697508038, 111222537.30911414); 
      cout << "TEST-" << 3 << "..."
           <<  result
           << "\n";
  
      result = driver(3821.882657293133, 25130647.008061722); 
      cout << "TEST-" << 4 << "..."
           <<  result
           << "\n";
  
      result = driver(-6840.635072240347, 80508515.3102342); 
      cout << "TEST-" << 5 << "..."
           <<  result
           << "\n";
  
      result = driver(1623.036598830132, 4532163.809416133); 
      cout << "TEST-" << 6 << "..."
           <<  result
           << "\n";
  
      result = driver(-9714.00706195298, 162347573.54592204); 
      cout << "TEST-" << 7 << "..."
           <<  result
           << "\n";
  
      result = driver(3916.454769669618, 26389745.561382204); 
      cout << "TEST-" << 8 << "..."
           <<  result
           << "\n";
  
      result = driver(-669.068424712943, 770176.1075446572); 
      cout << "TEST-" << 9 << "..."
           <<  result
           << "\n";
  
      return 0;
  }
source_py: def program_to_find_the_area_of_pentagon(a):
      area = (((sqrt((5 * (5 + (2 * sqrt(5))))) * a) * a) / 4)
      return area
source_cpp: float program_to_find_the_area_of_pentagon(float a) {
    float area;
    area = ( sqrt ( 5 * ( 5 + 2 * ( sqrt ( 5 ) ) ) ) * a * a ) / 4;
    return area;
  }