title: Program To Find The Area Of Pentagon
signature: class Solution {
  
      public Double programToFindTheAreaOfPentagon(Double a) {
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.extension: java
question_info.entry_fn_name: programToFindTheAreaOfPentagon
question_info.entry_cls_name: Solution
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.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Double a, Double expected){
          try{
              Driver driver = new Driver();
              if (driver.run(a,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(2009.019461888707, 6944120.6857642615);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(-1480.5131394215787, 3771147.371815937);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(357.7870347569567, 220240.9998483103);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(-8040.293697508038, 111222537.30911414);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(3821.882657293133, 25130647.008061722);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(-6840.635072240347, 80508515.3102342);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(1623.036598830132, 4532163.809416133);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(-9714.00706195298, 162347573.54592204);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(3916.454769669618, 26389745.561382204);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(-669.068424712943, 770176.1075446572);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Double a, Double expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(a),expected);
      }
      
      public boolean validateSolution(Double actual, Double expected){
          return Math.abs(actual - expected) < 1e-09;
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: java __FILENAME__