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, 21.06.2019 22:00
3. (6 pts) internally in the computer, with few exceptions, all numerical computation is done using binary numbers. output, however, often uses ascii, which is formed by appending 011 to the left of a bcd code. thus, an algorithm that directly converts a binary integer to a bcd integer is very useful. here is one such algorithm 1) draw lines to the left of the binary number to bound the expected bcd decades. (each decade is a group of 4 bits.) move the binary number one bit to the left. add 0011 to each bcd decade containing a binary value> 0100 repeat steps 2-3 until the last bit in the binary number has been moved into the least significant decade position. (note that when the last bit has been shifted into bcd decade, step 3 is not repeated.) read the bcd result. 2) 3) 4) 5) a) execute the algorithm for the binary number 1101101 b) execute the algorithm for the binary number 01110101110 4. (4 pts) represent the decimal number 3568 in bcd; excess-3 code; ascil; and hex.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
question
Computers and Technology, 24.06.2019 01:00
Mastercard managers are motivated to increase (1) the number of individuals who have and use a mastercard credit card, (2) the number of banks and other clents who issue mastercards to customers and/or employees, and (3) the number of locations that accept mastercard payments. discuss how mastercard could use its data warehouse to it expand each of these customer bases.
Answers: 3
question
Computers and Technology, 24.06.2019 04:30
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
You know the right answer?
## Inputs # Recieving two coordinate pairs
x1 = int(input("Please provide X1:\t"))
y1...
Questions
question
Mathematics, 23.07.2020 01:01
question
Mathematics, 23.07.2020 01:01
question
Mathematics, 23.07.2020 01:01
question
Mathematics, 23.07.2020 01:01
question
History, 23.07.2020 01:01
question
English, 23.07.2020 01:01
question
Mathematics, 23.07.2020 01:01
question
Mathematics, 23.07.2020 01:01
question
Mathematics, 23.07.2020 01:01
Questions on the website: 13722363