Question: Build and run Lab4A.cpp //C++ Lab4A.cpp #include ; #include ; #include ; using namespace std; int main ( ) { double a[] = {1, 0,
Build and run Lab4A.cpp //C++ Lab4A.cpp #include
cout << " ab=" << ab << " ac=" << ac << " ad=" << ad;
cout << "Result " ; //system("pause"); return 0; } 1.2 Next, copy the class to Lab4B.cpp, and replace the individual distance calculations by calls to a single function that computes the distance between two points passed in as parameters. Also, implement the function. Make sure that your modified program compiles and runs, and gives the same output as before. Also, make sure your name is in the comment at the top. PLEASE WRITE THE CODE FOR THIS.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
