1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Shtirlitz [24]
3 years ago
9

Assign point_dist with the distance between point (x1, y1) and point (x2, y2). the calculation is: distance = squarerootof( (x2

- x1)2 + (y2 - y1)2 ). sample output for the given program:
Mathematics
1 answer:
MissTica3 years ago
8 0
<span>import math def calculateDistance(x1,y1,x2,y2): dist = math.sqrt((x2 - x1)**2 + (y2 - y1)**2) return dist distance = calculateDistance(2,4,6,8) print distance</span>
You might be interested in
On a coordinate plane, a line goes through points (negative 1, 0), (0, 1), and (1, 2). Which table goes with the graph?
jok3333 [9.3K]

Answer:

Table B

Step-by-step explanation:

correct on edge :)

4 0
3 years ago
How many brands of raisin bran are shown in the table?
Firlakuza [10]
I can’t see the table. Include an attachment?
4 0
3 years ago
Solve for the variable x<br><br> m = -12g + x
mario62 [17]

Answer:

x=m+12g

Step-by-step explanation:

m=-12g+x

making x subject of formula, we have,

x=m+12g

3 0
3 years ago
105-30-45-3028+10000000000000038492=?
Volgvan

Answer:

105-30-45-3028+10000000000000038492= 1.000000000000003e19

Step-by-step explanation:

I did the math

have a good day!!

8 0
3 years ago
What is There are fourteen whole snack bars on a plate. There are five friends.
AleksandrR [38]

Carl is incorrect. Dave ate a higher fraction of snack bars, by 0.2 snack bars.

Carl had .5 left of a snack bar.

Dave had .3 left of a snack bar.

Tony had .5 left of a snack bar.

Gary had .0 left of a snack bar.

Tryone had .7 left of a snack bar.

If we add the above snack bars, there is a total of two remaining snack bars, meaning they only ate 12 of 14 snack bars.

3 0
3 years ago
Other questions:
  • The sum of 19 and twice mai’s savings
    8·1 answer
  • Which is more,5 ounces or 1 pund
    11·2 answers
  • How do I find the gradient of the line y=x-5
    8·1 answer
  • Help!!!!!!!! Plz I need help
    7·1 answer
  • Como realizo la factorizacion de estos ejercicios y que caso pertenece a cada uno.... Por favor ayudenme ya que no soy muy buena
    9·1 answer
  • Choices.
    13·1 answer
  • Can anyone help solve these questions
    10·1 answer
  • You are standing 24 feet from the base of a tree. The angle of elevation to the top of the tree is 34 degrees. What is the heigh
    6·1 answer
  • PLEASE HELP!!?Is the graph increasing, decreasing, or constant?
    7·2 answers
  • If im taking a 32 hour course and ive completed 73% of it how much time do i have left
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!