title: Program To Find The Volume Of A Triangular Prism
signature: class Solution {
  
      public Double programToFindTheVolumeOfATriangularPrism(Double l, Double b, Double h) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Double l, Double b, Double h, Double expected){
          try{
              Driver driver = new Driver();
              if (driver.run(l, b, h,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(8448.900678262902, 8135.461799983198, 6577.239053611328, 226045593884.95786);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(-1849.728957491451, -4240.89241631363, -9953.518310747193, -39040194699.58562);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(412.667844022232, 9798.083992381831, 1449.9204200270522, 2931270907.5877957);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(-5954.835911765373, -661.8872499003203, -8049.6051526695055, -15863477478.565292);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(8437.913444665008, 8182.675681595904, 9863.296545513396, 340504220608.1437);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(-7183.181663518317, -6846.746446198541, -971.2199894221352, -23882990818.874195);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(2340.7905920227954, 5479.00956987109, 7073.449591910562, 45359252560.89365);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(-7281.157547371143, -615.8705455524116, -3343.0245192607968, -7495479637.450533);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(471.3930826982504, 1357.3753126091392, 1907.815700915636, 610364933.1115178);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(-7550.426360065503, -2693.2262997056355, -9110.64755244532, -92632540179.42117);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Double l, Double b, Double h, Double expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(l, b, h),expected);
      }
      
      public boolean validateSolution(Double actual, Double expected){
          return Math.abs(actual - expected) < 1e-09;
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
source_py: def program_to_find_the_volume_of_a_triangular_prism(l, b, h):
      return (((l * b) * h) / 2)
source_cpp: float program_to_find_the_volume_of_a_triangular_prism(float l, float b, float h) {
    float volume = ( l * b * h ) / 2;
    return volume;
  }