Question: use python Instructions Calculate the distance between two points as follows 1. Input Prompt the user or two ordered pairs (x1, y1), 2, y2) 2

use python  use python Instructions Calculate the distance between two points as follows

Instructions Calculate the distance between two points as follows 1. Input Prompt the user or two ordered pairs (x1, y1), 2, y2) 2 Calculate the length of the two legs of the right triangle: (2x1), (y2-y1) 3 Calculate the distance between the two points using the Pythagorean Theorem. Remember that the length of the hypotenuse (distance) equals the square root of the sum of the legs squared 4 Print out the distance in the follow three ways 1. Rounded to the nearest whole number 2 Rounded to the nearest tenth. 3. Rounded up (always) to the nearest whole number (e, 32 would round up to 4.0)

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!