title: Program Find Slope Line
signature: class Solution {
  
      public decimal ProgramFindSlopeLine(decimal x1, decimal y1, decimal x2, decimal y2) {
test_code: using System;
  using System.Numerics;
  using System.Diagnostics;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Security.Cryptography;
  using System.Web.UI;
  using System.Web.Script.Serialization;
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  namespace EvaluatePrediction {
      class TestRunner {
          public bool ValidateSolution(decimal actual, decimal expected){
              return Math.Abs(actual - expected) < 1e-09m;
          }
  
          public string driver(decimal x1, decimal y1, decimal x2, decimal y2, decimal expected){
              try{
                PLACEHOLDER_CLS_NAME solution_cls = new PLACEHOLDER_CLS_NAME();
                decimal pred_result = solution_cls.PLACEHOLDER_FN_NAME(x1, y1, x2, y2); 
                if (ValidateSolution(
                      pred_result,
                      expected)){
                  return "PASSED";
                }
                return "FAILED";
              } 
              catch (Exception exception_obj)
              {
                return exception_obj.GetType().FullName;
              }
          }
          static void Main(string[] args) {
              TestRunner runner = new TestRunner();
              String result;
              result = runner.driver(
                  236.27324548309292m, 5792.493225762838m, 7177.837879115863m, 1289.5700425822731m, 
                  -0.6486899453998202m
              );
              Console.WriteLine(string.Format(
                  "TEST-0...{0}",
                  result)
              );result = runner.driver(
                  -9201.144918204123m, -2716.3347716140406m, -5161.142121227645m, -3205.784279961129m, 
                  -0.12115078452752318m
              );
              Console.WriteLine(string.Format(
                  "TEST-1...{0}",
                  result)
              );result = runner.driver(
                  3480.4716834445326m, 3577.9608612055613m, 8611.515262945342m, 6744.864707668983m, 
                  0.617204628531244m
              );
              Console.WriteLine(string.Format(
                  "TEST-2...{0}",
                  result)
              );result = runner.driver(
                  -6915.538971485092m, -4113.601103381095m, -748.3462104020822m, -9245.271700539257m, 
                  -0.8320918116165706m
              );
              Console.WriteLine(string.Format(
                  "TEST-3...{0}",
                  result)
              );result = runner.driver(
                  8887.97173657486m, 1678.4080012662428m, 8709.574949883017m, 8548.492675510739m, 
                  -38.51013687881985m
              );
              Console.WriteLine(string.Format(
                  "TEST-4...{0}",
                  result)
              );result = runner.driver(
                  -3785.5177159369946m, -3084.67461899163m, -7415.76208254121m, -887.5389305564152m, 
                  -0.6052307962095809m
              );
              Console.WriteLine(string.Format(
                  "TEST-5...{0}",
                  result)
              );result = runner.driver(
                  3037.6696554256832m, 4432.445827549m, 8387.304165588026m, 611.3373507518394m, 
                  -0.7142746798007333m
              );
              Console.WriteLine(string.Format(
                  "TEST-6...{0}",
                  result)
              );result = runner.driver(
                  -7925.458496016523m, -3350.27411882042m, -5619.767086756504m, -1185.7423219907591m, 
                  0.9387777514963889m
              );
              Console.WriteLine(string.Format(
                  "TEST-7...{0}",
                  result)
              );result = runner.driver(
                  1404.2919985268031m, 8971.636233373416m, 3039.112051378511m, 1947.6756252708972m, 
                  -4.2964732392719505m
              );
              Console.WriteLine(string.Format(
                  "TEST-8...{0}",
                  result)
              );result = runner.driver(
                  -4748.744241168378m, -675.557388148954m, -5998.241086029875m, -4236.658178504375m, 
                  2.85002783720527m
              );
              Console.WriteLine(string.Format(
                  "TEST-9...{0}",
                  result)
              );
          }
      }
  }
  
source_py: def program_find_slope_line(x1, y1, x2, y2):
      return (float((y2 - y1)) / (x2 - x1))
source_cpp: float program_find_slope_line(float x1, float y1, float x2, float y2) {
    return ( y2 - y1 ) / ( x2 - x1 );
  }