Question: C++ Program 1. The following formula gives the distance between two points (x1,y1) and (x2,y2) in the Cartesian plane. (x2x1)2+(y2y1)2 Write a function that can
1. The following formula gives the distance between two points (x1,y1) and (x2,y2) in the Cartesian plane. (x2x1)2+(y2y1)2 Write a function that can compute and return the distance using the above formula. Now write another function (Call it Circle) that would take radius (R) as input and computes the circumference and the area of the circle, and both the values should be accessible to main. The formulae for circumference and area of circle Circumference =2R Area =R2 Main must get the inputs x1,y1 and x2,y2 values, and then call the function Distance to store the distance in the variable R and then call the function Circle to get area and circumference and display these two values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
