title: Area Of A Hexagon
signature: class Solution {
  
      public Double areaOfAHexagon(Double s) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Double s, Double expected){
          try{
              Driver driver = new Driver();
              if (driver.run(s,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(1772.6589509256596, 8163986.207300422);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(-599.737107809315, 934487.9989101035);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(1074.1765931782, 2997804.1448343466);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(-1182.4087746714795, 3632345.696441302);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(8083.035797247716, 169746524.38794258);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(-6126.414356565494, 97513471.98905805);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(5370.057504189614, 74922068.46663411);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(-6947.020794285176, 125386010.4299519);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(2110.5107873533325, 11572495.990484647);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(-6458.751326919488, 108379966.88267714);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Double s, Double expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(s),expected);
      }
      
      public boolean validateSolution(Double actual, Double expected){
          return Math.abs(actual - expected) < 1e-09;
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
source_py: def area_of_a_hexagon(s):
      return (((3 * math.sqrt(3)) * (s * s)) / 2)
source_cpp: double area_of_a_hexagon(double s) {
    return ( ( 3 * sqrt ( 3 ) * ( s * s ) ) / 2 );
  }