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
If LM = 22 and MN = 15, find LN
levacccp [35]
Assuming that point M lies on line segment LN, then by the segment addition postulate, we can say

LN = LM + MN
LN = 22 + 15
LN = 37
8 0
4 years ago
Read 2 more answers
I GIVEEEVEEE BRAINLILST
gavmur [86]

the answer should be 15- / 12= q243

Step-by-step explanation:

3 0
3 years ago
2.49 Encuentre los errores en cad uno de las siguientes aseveraciones: a) las probabilidades de que un vendedor de automóviles v
Yuki888 [10]

Answer:

Step-by-step explanation:

a) Si se suman las probabilidades de venta, es decir:

Probabildad de vender 0 auto ( es decir que no vendió) = 0,19

Probabildad de vender 1 auto                                              = 0,38

Probabildad de vender 2 autos                                            = 0,29

Probabildad de vender 3 autos                                            =0,15

Da por resultado:  1,01

1,01 > 1  

Ninguna probabilidad puede ser mayor que

b) LLover y no llover son condiciones excluyentes en relación al evento, es decir en relación a lluvia cualquier día o llueve o no llueve de tal forma

que las dos situaciones conforman el universo completo y deben sumar 1. en este caso el error s que suman 0.92 cando deberían sumar 1

c) No existen probabilidades negativas ( en este caso señalan -0,25 como una probabilidad

d) La probabilidad de sacar una carta de corazones es 1/4 (correcta pues hay la misma cantidad de carta de las cuatro viras  tipo ( diamante, trebo, corazones y el otro).

La mitad de las cartas son negras, de tal modo que 1/2 es correcto valor para esta probabilidad.

La probabilidad de que sea corazones y negra s 1/4*1/2  = 1/8

Luego no hay error en esta aseveración

5 0
3 years ago
PLZ HELP<br> Use the graph to write an equation of the line.
zvonat [6]

Answer:

y = 55x

Step-by-step explanation:

This is a straight line graph - this means that the equation of the line can be written in the form y = mx + c, where m = the <em>gradient </em>of the line (how quickly it goes up or down) and c is a <em>constant</em> that determines how high or low the 'origin' of the line is.

The first thing to do is to find the m, or gradient, of the line. This can be done using a simple rule that you must remember: <em>rise over run</em>. What this means is, between two points on the line, you must find how much higher the second point is than the first, then divide this by how far right the second point is to the first.

Let's do the calculations:

Rise = 165 - 55 = 110 (point 2 is 110 units higher than point 1)

Run = 3 - 1 = 2 (point 2 is 2 to units to the right of point 1)

Now divide these, <em>rise over run</em>:

110 / 2 = 55, therefore m = 55.

So now we have m, but how do we find c? We can substitute the x and y of one the points on the line into y = mx + c, alongside our value of m = 55.

I'll use point 1 for this example, as the numbers are smaller (y = 55, x = 1).

55 = 55 * 1 + c

Now, solve the equation to find c:

55 = 55 + c

0 = c

c is therefore 0! But this is not always the case, so watch out...

We have found all the numbers we need, but don't forget to write out the full equation! After having calculated m and c, we know the equation of the line is y = 55x (+ 0).

7 0
3 years ago
Question<br> 2 is 25% of what number
ycow [4]

Answer:

8

Step-by-step explanation:

25% times 4 is 100% wich we are trying to find and if we also multiple 2 by 4 we should get 8

6 0
3 years ago
Other questions:
  • The sum of two numbers is17 and the sum of their squares is 145. Find the larger number.
    8·2 answers
  • If five notebooks cost $5.25 then how much would three notebooks cost
    8·2 answers
  • The expression 3P2 represents the number of ways of:
    8·2 answers
  • I have a math problem. I don't know were to start here's my problem. You have 3 cards in front of you, on one side there's a let
    12·1 answer
  • Select the correct answer from each drop-down menu. Quadrilateral PQRS, with vertex P(-5, -3), undergoes a transformation to for
    11·1 answer
  • What expression is equivalent to 9(3x + 8)? *
    7·2 answers
  • ⚠️please help done today⚠️
    8·1 answer
  • Select all the fractions and/or mixed numbers that are equivalent to 225%.
    5·1 answer
  • Re-write the statement 16 + 5/2-1 + 6 by including two pairs of brackets
    14·1 answer
  • Adwoa receive a commission of 20% on bread she sold.in one week,adwoa's commission was 540 ghana cedis how much bread did she se
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!