Question: Create a user - defined data structure ( i . e . , struct ) called CartesianCoordinate that represents a two - dimensional Cartesian coordinate
Create a userdefined data structure ie struct called CartesianCoordinate that represents a twodimensional Cartesian coordinate x y The member variables of this struct will be just x and y which are both floatingpoint values.
points Define a function called calculateDistance that takes two parameters, each of type CartesianCoordinateie pointer to CartesianCoordinate and returns the distance between the two given CartesianCoordinate points. As you may recall, the formula for calculating the distance between two CartesianCoordinate points, say px y and px y is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
