Question: This is C programming problem. Please help. Thank you. In function main declare coordinates for two points (x1, y1, x2, y2) and slope m and
In function main declare coordinates for two points (x1, y1, x2, y2) and slope m and y-intercept b. Call a function get2points to read in the two sets of coordinates. Return the values to function main, pass by address. Call a second function slope Intercept to calculate the values of slope m and intercept b for the form y = mx + b. Function slope intercept has six parameters, the four coordinate values and pointers to the slope and y-intercept. Call a function displayEquation to print the final form of the equation. Enclose the call statements in a while or do ...while loop so that additional coordinates can be converted to the slope intercept format if desired. Test with coordinate pairs: (4, 3) and (-2,1) (1,1) and (5,17.8)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
