title: Program Circumference Parallelogram
signature: function program_circumference_parallelogram(a, b)
test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return math.abs(actual - expected) < 1e-09
  end
  
  function driver(a, b, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(a, b) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver(801.0366882228715, 456.71190645582783, 2515.4971893573984)
      print(string.format("TEST-0...%s",result))
  
      result = driver(-7069.610056819919, -4226.483870778477, -22592.18785519679)
      print(string.format("TEST-1...%s",result))
  
      result = driver(7723.966966568705, 5894.65405158763, 27237.242036312673)
      print(string.format("TEST-2...%s",result))
  
      result = driver(-7935.859205856963, -5333.225064296693, -26538.168540307313)
      print(string.format("TEST-3...%s",result))
  
      result = driver(6094.247432557289, 1660.420120702062, 15509.335106518702)
      print(string.format("TEST-4...%s",result))
  
      result = driver(-7371.490363309265, -1095.4543576847332, -16933.889441987998)
      print(string.format("TEST-5...%s",result))
  
      result = driver(8368.473889617526, 4735.838330834498, 26208.62444090405)
      print(string.format("TEST-6...%s",result))
  
      result = driver(-3761.921143166053, -5315.871691690649, -18155.585669713404)
      print(string.format("TEST-7...%s",result))
  
      result = driver(3139.1089185587884, 6490.194159517967, 19258.60615615351)
      print(string.format("TEST-8...%s",result))
  
      result = driver(-5218.286665567171, -8265.153014320813, -26966.87935977597)
      print(string.format("TEST-9...%s",result))
  
  end
  
  main()
source_py: def program_circumference_parallelogram(a, b):
      return ((2 * a) + (2 * b))
source_cpp: float program_circumference_parallelogram(float a, float b) {
    return ( ( 2 * a ) + ( 2 * b ) );
  }