title: Program To Find The Area Of Pentagon
signature: func programToFindTheAreaOfPentagon(a float64) float64 {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual float64, expected float64) bool {
      return math.Abs(actual - expected) < 1e-09
  }
  
  func driver(a float64, expected float64) string {
      if validateSolution(PLACEHOLDER_FN_NAME(a),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(2009.019461888707, 6944120.6857642615)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(-1480.5131394215787, 3771147.371815937)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(357.7870347569567, 220240.9998483103)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(-8040.293697508038, 111222537.30911414)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(3821.882657293133, 25130647.008061722)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(-6840.635072240347, 80508515.3102342)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(1623.036598830132, 4532163.809416133)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(-9714.00706195298, 162347573.54592204)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(3916.454769669618, 26389745.561382204)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(-669.068424712943, 770176.1075446572)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
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;
  }