Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started