Using Python Programming:
Calculate the distance and draw a line between the two points. Use entry fields for users to enter the coordinates of the two points. When the user clicks on the Calculate button, calculate the distance between the two points and display the result in the distance field. (9 pts) When the user clicks on the Draw button, write the two points and draw a line between the two points in red color. (5 pts)
Distance
x
X Coord. Y Coord. Point 1: 80 80 Point 2: 300 240 Distance: 272.03 Calculate Draw Clear
Point 1
Point 2