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 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
Use a software program or a graphing utility with matrix capabilities to solve the system of linear equations using an inverse matrix. x1 + 2x2 − x3 + 3x4 − x5 = 6 x1 − 3x2 + x3 + 2x4 − x5 = −6 2x1 + x2 + x3 − 3x4 + x5 = 3 x1 − x2 + 2x3 + x4 − x5 = −3 2x1 + x2 − x3 + 2x4 + x5 = 5
Answers: 3
You know the right answer?
## Inputs # Recieving two coordinate pairs
x1 = int(input("Please provide X1:\t"))
y1...
Questions
question
Mathematics, 29.04.2021 19:50
question
Mathematics, 29.04.2021 19:50
Questions on the website: 13722361