The slope of a line is defined as:
(x1, y1), (x2, y2):
m = (y2-y1)/(x2-x1)
and the slope-intercept form (how you can find the y intercept) is:
y = mx + b, therefore
y - mx = b.
m is slope
y is y coordinate
x is x coordinate
b is y intercept
The y intercept is where the line touches the 'y' axis on a Cartesian coordinate plane.
What you must do:
1. Prompt the user for 2 ordered pairs, and show the slope and y intercept.
2. Handle cases when the slope will be undefined.
3. Allow the slope function to return any type of value and accept any argument type.
Good luck, and I hope this can live up to the xpectations of the name "Project Idea".