Question: 3 Question 3 . For two points u and v, the distance d between them is given as follows. Write a function distance to calculate

3 Question 3 . For two points u and v, the distance d between them is given as follows. Write a function distance to calculate the distance between two PointXY objects. double distance(const PointXY u, conat PointXY kv): . Write a function "area.perimeter" to calculate the area and perimeter given an input vector of three points. The three points form a triangle. . Your function should enable the program below to compile and run correctly // #include relevant headers using namespace std; // class declaration and functions int main) int n 3; vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
