promotion image of download ymail app
Promoted

Write a program that will allow the user to enter the  coordinates of two points on a Cartesian plane and output the equation of the line-?

-that passes through both of these points. Remember that the equation of a straight line is y = mx + b. You can display m and b as a decimal numbers rounded to two decimal spots. 

1 Answer

Relevance
  • Pope
    Lv 7
    2 months ago

    I would make the equation general form or standard form. Your challenge calls for slope-intercept form. A line can be defined fitting any two distinct points in the plane, but if they have the same x-coordinate, there can be no slope-intercept equation.

    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.