title: Program To Find The Area Of Pentagon
signature: pub fn program_to_find_the_area_of_pentagon(a: 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(a: f64, expected: f64)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(a), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        2009.019461888707, 
        6944120.6857642615
      ));
      
      println!("TEST-1...{}", driver(
        -1480.5131394215787, 
        3771147.371815937
      ));
      
      println!("TEST-2...{}", driver(
        357.7870347569567, 
        220240.9998483103
      ));
      
      println!("TEST-3...{}", driver(
        -8040.293697508038, 
        111222537.30911414
      ));
      
      println!("TEST-4...{}", driver(
        3821.882657293133, 
        25130647.008061722
      ));
      
      println!("TEST-5...{}", driver(
        -6840.635072240347, 
        80508515.3102342
      ));
      
      println!("TEST-6...{}", driver(
        1623.036598830132, 
        4532163.809416133
      ));
      
      println!("TEST-7...{}", driver(
        -9714.00706195298, 
        162347573.54592204
      ));
      
      println!("TEST-8...{}", driver(
        3916.454769669618, 
        26389745.561382204
      ));
      
      println!("TEST-9...{}", driver(
        -669.068424712943, 
        770176.1075446572
      ));
      
  }
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;
  }