title: Program To Find The Volume Of A Triangular Prism
signature: double programToFindTheVolumeOfATriangularPrism(double l, double b, double h) {
test_code: #include <algorithm>
  #include <assert.h>
  #include <cstdlib>
  #include <iostream>
  #include <map>
  #include <set>
  #include <string>
  #include <tuple> 
  #include <unordered_map>
  #include <vector>
  #include <math.h>
  #include <cmath>
  #include <bits/stdc++.h>
  #include <numeric>
  #include <functional>
  
  using namespace std;
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(double actual, double expected){
      return abs(actual - expected) < 1e-09;
  }
  
  string driver(double l, double b, double h, double expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(l, b, h), expected)){
              return "PASSED";
          }
          return "FAILED";
      }
      catch (const std::overflow_error& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (const std::runtime_error& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (const std::exception& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (...)
      {
          return "UNK_ERROR";
      }
  }
  
  int main() {
      string result = "";
  
      result = driver(8448.900678262902, 8135.461799983198, 6577.239053611328, 226045593884.95786); 
      cout << "TEST-" << 0 << "..."
           <<  result
           << "\n";
  
      result = driver(-1849.728957491451, -4240.89241631363, -9953.518310747193, -39040194699.58562); 
      cout << "TEST-" << 1 << "..."
           <<  result
           << "\n";
  
      result = driver(412.667844022232, 9798.083992381831, 1449.9204200270522, 2931270907.5877957); 
      cout << "TEST-" << 2 << "..."
           <<  result
           << "\n";
  
      result = driver(-5954.835911765373, -661.8872499003203, -8049.6051526695055, -15863477478.565292); 
      cout << "TEST-" << 3 << "..."
           <<  result
           << "\n";
  
      result = driver(8437.913444665008, 8182.675681595904, 9863.296545513396, 340504220608.1437); 
      cout << "TEST-" << 4 << "..."
           <<  result
           << "\n";
  
      result = driver(-7183.181663518317, -6846.746446198541, -971.2199894221352, -23882990818.874195); 
      cout << "TEST-" << 5 << "..."
           <<  result
           << "\n";
  
      result = driver(2340.7905920227954, 5479.00956987109, 7073.449591910562, 45359252560.89365); 
      cout << "TEST-" << 6 << "..."
           <<  result
           << "\n";
  
      result = driver(-7281.157547371143, -615.8705455524116, -3343.0245192607968, -7495479637.450533); 
      cout << "TEST-" << 7 << "..."
           <<  result
           << "\n";
  
      result = driver(471.3930826982504, 1357.3753126091392, 1907.815700915636, 610364933.1115178); 
      cout << "TEST-" << 8 << "..."
           <<  result
           << "\n";
  
      result = driver(-7550.426360065503, -2693.2262997056355, -9110.64755244532, -92632540179.42117); 
      cout << "TEST-" << 9 << "..."
           <<  result
           << "\n";
  
      return 0;
  }
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;
  }