title: Calculate Area Tetrahedron
signature: class Solution {
  
      public Float calculateAreaTetrahedron(Integer side) {
source_py: def calculate_area_tetrahedron(side):
      volume = ((side ** 3) / (6 * math.sqrt(2)))
      return round(volume, 2)
source_cpp: double calculate_area_tetrahedron(int side) {
    double volume = ( pow ( side, 3 ) / ( 6 * sqrt ( 2 ) ) );
    return volume;
  }
question_info.extension: java
question_info.entry_fn_name: calculateAreaTetrahedron
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 22994.17, "inputs": {"side": 58}}, {"idx": 1, "outputs": 20696.54, "inputs": {"side": 56}}, {"idx": 2, "outputs": 5052.87, "inputs": {"side": 35}}, {"idx": 3, "outputs": 114350.83, "inputs": {"side": 99}}, {"idx": 4, "outputs": 258.92, "inputs": {"side": 13}}, {"idx": 5, "outputs": 10739.18, "inputs": {"side": 45}}, {"idx": 6, "outputs": 7542.47, "inputs": {"side": 40}}, {"idx": 7, "outputs": 91769.26, "inputs": {"side": 92}}, {"idx": 8, "outputs": 40.42, "inputs": {"side": 7}}, {"idx": 9, "outputs": 258.92, "inputs": {"side": 13}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer side, Float expected){
          try{
              Driver driver = new Driver();
              if (driver.run(side,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(58, 22994.17f);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(56, 20696.54f);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(35, 5052.87f);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(99, 114350.83f);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(13, 258.92f);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(45, 10739.18f);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(40, 7542.47f);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(92, 91769.26f);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(7, 40.42f);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(13, 258.92f);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer side, Float expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(side),expected);
      }
      
      public boolean validateSolution(Float actual, Float expected){
          return Math.abs(actual - expected) < 1e-06f;
      }
  }
  
  
  // 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__