about | help | code help+videos | done | prefs |
test2021_11_04_SLHL_slopeAndYInt
Write a method that accepts two points as input parameters, where each point is represented by an array of doubles, with element 0 representing x and element 1 representing y. The method is supposed to return a string describing the line that intersects those two points. Look at the test data to see what you are supposed to do. Remember: You should ALWAYS have paper and a pen or pencil when you are programming! It often helps to work things out on paper first! test2021_11_04_SLHL_slopeAndYInt([8, 1], [8, 12]) → "No slope. Vertical line x=8.0" test2021_11_04_SLHL_slopeAndYInt([0, 0], [5, 5]) → "Slope = 1.0; y-value of y-intercept: 0.0" test2021_11_04_SLHL_slopeAndYInt([-12, 12], [8, -8]) → "Slope = -1.0; y-value of y-intercept: 0.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: 250
Copyright Nick Parlante 2017 - privacy