Computers and Technology

## 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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:00, lovebug3563
Chloe is building a kiosk-based excel application. she wants to make some modifications to the screen elements in order to keep users from being distracted by parts of the application that are irrelevant to her application. she turns to henry for guidance as she knows he built a similar solution earlier this year. chloe has decided to hide the worksheet gridlines and the vertical scroll bar. what does henry tell her to use to do this? a) screen elements dialog boxb) display options dialog boxc) customization dialog boxd) excel options dialog box
Answers: 2
image
Computers and Technology, 22.06.2019 17:00, Dweath50
1. so if i wanted to build a linux server for web services(apache) with 1cpu and 2 gb of memory.-operating at 75% of memory capacity2. a windows server with 2 cpu/ 4gb memory- operating at 85% of memory capacity3. a storage server with 1 cpu/ 2gb memory- operating at 85% of memory capacityhow much memory do i have to add for each server. so that the utilization rate for both cpu and memory is at a baseline of 60%."the details for the cpu like its processor or the memory's speed isnt to be concerned" yeah i kept asking my teacher if he's even sure about the but the whole class seems to be confused and the project is due in 3 days..this is a virtualization project where i have to virtualize a typical server into an exsi hypervisor.
Answers: 2
image
Computers and Technology, 23.06.2019 15:20, headshotplayzcod
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
image
Computers and Technology, 23.06.2019 22:20, andrew412603
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
Do you know the correct answer?
## Inputs # Recieving two coordinate pairs
x1 = int(input("Please provide X1:\t"))
y1...

Questions in other subjects:

Konu
Mathematics, 23.10.2020 04:01