Question: Exercise 3: Define a struct object called pointType to represent the decimal x and y coordinates on a plane. Write a driver function definition called

Exercise 3: Define a struct object called pointType to represent the decimal x and y coordinates on a plane. Write a driver function definition called distance that takes as its parameters two pointType objects. The driver function should find the distance between the two pointType objects and return a decimal value back to the calling function. To calculate the distance, use the distance formula below: (15pts)

(x2x1)^2+(y2y1)^2

.

/*PASTE CODE HERE -- just the function definition in the driver.cpp file */

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!