title: Program To Find The Area Of Pentagon
signature: fun programToFindTheAreaOfPentagon(a: Double): Double {
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;
  }
question_info.test_list: [{"idx": 0, "outputs": 6944120.6857642615, "inputs": {"a": 2009.019461888707}}, {"idx": 1, "outputs": 3771147.371815937, "inputs": {"a": -1480.5131394215787}}, {"idx": 2, "outputs": 220240.9998483103, "inputs": {"a": 357.7870347569567}}, {"idx": 3, "outputs": 111222537.30911414, "inputs": {"a": -8040.293697508038}}, {"idx": 4, "outputs": 25130647.008061722, "inputs": {"a": 3821.882657293133}}, {"idx": 5, "outputs": 80508515.3102342, "inputs": {"a": -6840.635072240347}}, {"idx": 6, "outputs": 4532163.809416133, "inputs": {"a": 1623.036598830132}}, {"idx": 7, "outputs": 162347573.54592204, "inputs": {"a": -9714.00706195298}}, {"idx": 8, "outputs": 26389745.561382204, "inputs": {"a": 3916.454769669618}}, {"idx": 9, "outputs": 770176.1075446572, "inputs": {"a": -669.068424712943}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Double, expected:Double):Boolean{
    return abs(actual - expected) < 1e-09
  }
  fun driver(a: Double, expected:Double):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(a), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(2009.019461888707, 6944120.6857642615)
      println("TEST-0...${result}")
      
      result = driver(-1480.5131394215787, 3771147.371815937)
      println("TEST-1...${result}")
      
      result = driver(357.7870347569567, 220240.9998483103)
      println("TEST-2...${result}")
      
      result = driver(-8040.293697508038, 111222537.30911414)
      println("TEST-3...${result}")
      
      result = driver(3821.882657293133, 25130647.008061722)
      println("TEST-4...${result}")
      
      result = driver(-6840.635072240347, 80508515.3102342)
      println("TEST-5...${result}")
      
      result = driver(1623.036598830132, 4532163.809416133)
      println("TEST-6...${result}")
      
      result = driver(-9714.00706195298, 162347573.54592204)
      println("TEST-7...${result}")
      
      result = driver(3916.454769669618, 26389745.561382204)
      println("TEST-8...${result}")
      
      result = driver(-669.068424712943, 770176.1075446572)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: programToFindTheAreaOfPentagon
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn