about | help | code help+videos | done | prefs |
Oct11_2019_P1SLHL_findSlope
Write a method that accepts two points in the form of two, two-dimensional arrays of double. Return the slope between those two points. Good news! None of the points will be directly above or below each other, so there will not be any vertical slopes. Oct11_2019_P1SLHL_findSlope([10, 20], [30, 30]) → 0.5 Oct11_2019_P1SLHL_findSlope([50, 7], [55, 7]) → 0.0 Oct11_2019_P1SLHL_findSlope([8, 2], [9, 0]) → -2.0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 320
Copyright Nick Parlante 2017 - privacy