#include <iostream>
using namespace std;

int main() {
    /// declare integer variables x1, y1, x2, y2
	/// prompt the user for input with cout and get the input with cin
	///	check whether the slope is defined or not, if not bail
	/// compute the slope and store it in the variable of type double named slope.
	/// Report what the slope is.
	/// Compute the coordinates of the midpoint of the line segment and report
	/// prompt the user for an x-value and store this in a variable of type double
	/// compute the corresponding y-value on the line through (x1,y1) and (x2,y2)
	/// and report that    
}
/*  Here is the output of a sample run for this code:
Enter coordintates for (x1,y1) and (x2,y2), in that order: 0 1 2 2

The slope of the line through (0,1) and (2,2) is 0.5
The coordinates of the midpoint connecting 0,1) and (2,2) are (1,1.5)

Enter another x value to find the corresponding y-value on the line:3

The y-value corresponding to x = 3 is 2.5 */
