Question: Please help me with this C programming problem. Thank you. In function main declare coordinates for two points (x1, y1, x2, y2) and slope m
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 slopelntercept has six parameters, the four coordinate values and pointers to the slope and y-intercept. Call a function display Equation 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
