#include #include using namespace std; int main() { //Step 0: variables and other junk double x1; //double variables are used to hold decimal point numbers double y1; double x2; double y2; double distance; //Step 1: Ask user to enter first point (two numbers) cout << "Enter first point (two numbers): " << endl; //Step 1.5: get the point stred into two variables cin >> x1; cout << "Cool bro/bra, now enter the 2nd number..." << endl; cin >> y1; //Step 2: Ask user for 2nd point, get and store into 2 variables. cout << "Enter 2nd point (two numbers): " << endl; cin >> x2; cout << "Waiting for that 2nd number..." << endl; cin >> y2; //cout << pow(3, 4) << endl; //would print out 81 //Step 3: calculate distance between the two points distance = sqrt( pow( (x2-x1), 2 ) + pow((y2-y1),2) ); //Step 4: tell user the distance cout << "According to my calculations the distance between those two points is: " << distance << endl; return 0; }