subject

## Inputs # Recieving two coordinate pairs
x1 = int(input("Please provide X1:\t"))
y1 = int(input("Please provide Y1:\t"))
x2 = int(input("Please provide X2:\t"))
y2 = int(input("Please provide Y2:\t"))

## Calculations

# distance formula
xDif = x2 - x1
yDif = y2 - y1
radical = xDif**2 + yDif**2
distance = radical ** (1/2) # meters
## Outputs

#Informing the user of distance between the two coordinate pairs
print("Distance between points:", distance, "meters")

1)If the distance is greater than 50 units, let the user know the points are very far apart

2) If the distance is less than 5 but greater than 0, inform the user the points are fairly close

3)If the distance is 0, inform the user that these points are the same

Can someone help me completing 1,2,3 in python

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
The gene form of a trait is called a(n) 
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Afiling system in which an intermediary source of reference, such as a file card, must be consulted to locate specific files is called a(n) system. a. shelf filing b. direct filing c. indirect filing d. shingling
Answers: 1
You know the right answer?
## Inputs # Recieving two coordinate pairs
x1 = int(input("Please provide X1:\t"))
y1...
Questions
question
Computers and Technology, 13.02.2020 21:45
question
Mathematics, 13.02.2020 21:46
Questions on the website: 13722360