Home /
Expert Answers /
Computer Science /
in-c-please-9-7-practice-expressions-distance-formula-map-gps-applications-commonly-compute-the-pa538
(Solved): in C++ please 9.7 PRACTICE: Expressions*: Distance formula Map/GPS applications commonly compute the ...
in C++ please
9.7 PRACTICE: Expressions*: Distance formula Map/GPS applications commonly compute the distance between two points. A point may be a coordinate on an x?y plane like (1.5,2,0). The distance formula is d=?((x2?x1)2+(y2?y1)2) (basically, Pythagorean's Theorem). Given two points, output the distance between them. If the input is (1.5,2.0)(4.5,6.0), the output is 5 . Note: End with a newline: Hints: - Read in the parentheses and commas as in cin >c to skip over them, and read in the numbers as doubles - Add \#include and then use the sqrt0 function. For squaring, you might use the pow() function with a second parameter of 2 . LAB ACTIVITY 9.7.1. PRACTICE: Expressions*: Distance formula 0/3 Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box.