Question: iii. Use point 1 and point 2 s Distance method to find the distance from each point to the user s location. Notice we are
iii. Use point and points Distance method to find the distance from each point to the users location. Notice we are passing in the users point rather than the separate coordinates:
distanceToABQ ABQ.DistancepointUserPoint
distanceToLC LCDistancepointUserPoint
iv Tell the user which point they are closest to in this format:
You are closest to which is located at
v Ask Do another yn and loop if they respond with y
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
