title: Program Calculate Volume Octahedron
signature: class Solution {
  
      public Double programCalculateVolumeOctahedron(Double side) {
source_py: def program_calculate_volume_octahedron(side):
      return (((side * side) * side) * (math.sqrt(2) / 3))
source_cpp: double program_calculate_volume_octahedron(double side) {
    return ( ( side * side * side ) * ( sqrt ( 2 ) / 3 ) );
  }
question_info.extension: java
question_info.entry_fn_name: programCalculateVolumeOctahedron
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 17807230335.375374, "inputs": {"side": 3355.322051344013}}, {"idx": 1, "outputs": -333508958.9649689, "inputs": {"side": -891.0551553192736}}, {"idx": 2, "outputs": 263998930936.71603, "inputs": {"side": 8242.699647177868}}, {"idx": 3, "outputs": -374202387762.81836, "inputs": {"side": -9259.146104439229}}, {"idx": 4, "outputs": 216287285897.3415, "inputs": {"side": 7712.806145993083}}, {"idx": 5, "outputs": -58885228987.99368, "inputs": {"side": -4998.858862079315}}, {"idx": 6, "outputs": 439772223071.1617, "inputs": {"side": 9771.127582524628}}, {"idx": 7, "outputs": -74883158892.28471, "inputs": {"side": -5415.8106399098115}}, {"idx": 8, "outputs": 141830229.25431916, "inputs": {"side": 670.0774772280249}}, {"idx": 9, "outputs": -166494655500.3635, "inputs": {"side": -7068.634369272122}}]
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 side, Double 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(3355.322051344013, 17807230335.375374);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(-891.0551553192736, -333508958.9649689);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(8242.699647177868, 263998930936.71603);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(-9259.146104439229, -374202387762.81836);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(7712.806145993083, 216287285897.3415);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(-4998.858862079315, -58885228987.99368);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(9771.127582524628, 439772223071.1617);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(-5415.8106399098115, -74883158892.28471);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(670.0774772280249, 141830229.25431916);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(-7068.634369272122, -166494655500.3635);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Double side, Double expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(side),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__