Determine the distance between point (x1, y1) and point (x2, y2), and assign the result to point distance. the calculation is: distance = square root of( (x2 - x1)2 + (y2 - y1)2 ) you may declare additional variables. ex: for points (1.0, 2.0) and (1.0, 5.0), pointsdistance is 3.0.

Respuesta :

we are given two points as

(1.0, 2.0) and (1.0, 5.0)

so,

(x1, y1)= (1.0 , 2.0)

(x2, y2)= (1.0 , 5.0)

x1=1 , y1=2

x2=1 , y2=5

now, we can use distance formula

[tex]d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}[/tex]

now, we can plug values

and we get

[tex]d=\sqrt{(1-1)^2+(5-2)^2}[/tex]

[tex]d=\sqrt{(0)^2+(3)^2}[/tex]

[tex]d=\sqrt{(3)^2}[/tex]

[tex]d=3[/tex]

so, distance between points is 3...........Answer

ACCESS MORE