title: Program To Find The Volume Of A Triangular Prism
signature: fun programToFindTheVolumeOfATriangularPrism(l: Double, b: Double, h: Double): Double {
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;
  }
question_info.test_list: [{"idx": 0, "outputs": 226045593884.95786, "inputs": {"l": 8448.900678262902, "b": 8135.461799983198, "h": 6577.239053611328}}, {"idx": 1, "outputs": -39040194699.58562, "inputs": {"l": -1849.728957491451, "b": -4240.89241631363, "h": -9953.518310747193}}, {"idx": 2, "outputs": 2931270907.5877957, "inputs": {"l": 412.667844022232, "b": 9798.083992381831, "h": 1449.9204200270522}}, {"idx": 3, "outputs": -15863477478.565292, "inputs": {"l": -5954.835911765373, "b": -661.8872499003203, "h": -8049.6051526695055}}, {"idx": 4, "outputs": 340504220608.1437, "inputs": {"l": 8437.913444665008, "b": 8182.675681595904, "h": 9863.296545513396}}, {"idx": 5, "outputs": -23882990818.874195, "inputs": {"l": -7183.181663518317, "b": -6846.746446198541, "h": -971.2199894221352}}, {"idx": 6, "outputs": 45359252560.89365, "inputs": {"l": 2340.7905920227954, "b": 5479.00956987109, "h": 7073.449591910562}}, {"idx": 7, "outputs": -7495479637.450533, "inputs": {"l": -7281.157547371143, "b": -615.8705455524116, "h": -3343.0245192607968}}, {"idx": 8, "outputs": 610364933.1115178, "inputs": {"l": 471.3930826982504, "b": 1357.3753126091392, "h": 1907.815700915636}}, {"idx": 9, "outputs": -92632540179.42117, "inputs": {"l": -7550.426360065503, "b": -2693.2262997056355, "h": -9110.64755244532}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Double, expected:Double):Boolean{
    return abs(actual - expected) < 1e-09
  }
  fun driver(l: Double, b: Double, h: Double, expected:Double):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(l, b, h), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(8448.900678262902, 8135.461799983198, 6577.239053611328, 226045593884.95786)
      println("TEST-0...${result}")
      
      result = driver(-1849.728957491451, -4240.89241631363, -9953.518310747193, -39040194699.58562)
      println("TEST-1...${result}")
      
      result = driver(412.667844022232, 9798.083992381831, 1449.9204200270522, 2931270907.5877957)
      println("TEST-2...${result}")
      
      result = driver(-5954.835911765373, -661.8872499003203, -8049.6051526695055, -15863477478.565292)
      println("TEST-3...${result}")
      
      result = driver(8437.913444665008, 8182.675681595904, 9863.296545513396, 340504220608.1437)
      println("TEST-4...${result}")
      
      result = driver(-7183.181663518317, -6846.746446198541, -971.2199894221352, -23882990818.874195)
      println("TEST-5...${result}")
      
      result = driver(2340.7905920227954, 5479.00956987109, 7073.449591910562, 45359252560.89365)
      println("TEST-6...${result}")
      
      result = driver(-7281.157547371143, -615.8705455524116, -3343.0245192607968, -7495479637.450533)
      println("TEST-7...${result}")
      
      result = driver(471.3930826982504, 1357.3753126091392, 1907.815700915636, 610364933.1115178)
      println("TEST-8...${result}")
      
      result = driver(-7550.426360065503, -2693.2262997056355, -9110.64755244532, -92632540179.42117)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: programToFindTheVolumeOfATriangularPrism
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn