(Algebra: slope-int ercept form) Write a program that prompts the user to enter the coordinates of two Points (x1 , y1) and (x2 , y2), and displays the line equation in the slope- int ercept form, i.e., y = mx + b. For a review of line equations, see www.purplemath.com/modules/strtlneq.htm. m and b can be computed using the following formula:
![]()
Don’t display m if it is 1 and don’t display b if it is 0. Here is a sample run:


We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.