Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help Assign point dist with the distance between point (x1,y1) and point (x2,y2). The calculation is: Distance = SquareRootOf ((x2. x1)2+(y2y1)2) Sample output with

please help image text in transcribed
Assign point dist with the distance between point (x1,y1) and point (x2,y2). The calculation is: Distance = SquareRootOf ((x2. x1)2+(y2y1)2) Sample output with inputs: 1.0201 .05 .0 Points distance: 3.0 Code writing challenge activity demo 1 import math 2 3 point_dist =0.0 4 51= float(input()) 6 y1 = float(input()) 72= float(input()) 8 y2 = float(input ()) 9 10 Your solution goes here * 111 12 print('Points distance:' point_dist)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

What is Working Capital ? Explain its types.

Answered: 1 week ago