# 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

- PopeLv 72 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.

- Login to reply the answers

Still have questions? Get your answers by asking now.