about | help | code help+videos | done | prefs |
Define a function that when passed the coordinates of two points (x1, y1) and (x2, y2) through which a line passes and another value (y3), returns the x-coordinate of the point on the line when y = y3.
getX(2, 6, 4, 12, 30) → 10 getX(5, 4, 20, 5, 6) → 35 getX(2, 6, 4, 12, -12) → -4 ...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: 5 Post-solution available
Copyright Nick Parlante 2017 - privacy