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
How is the graph of the parent function y = StartFraction 1 Over x EndFraction transformed to create the graph of y = negative S
faltersainse [42]

Answer:

The answer is c horizontally compressed by a factor of 3 and reflected over the x-axis.

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
You are at a stall at a fair where you have to throw a ball at a target. There are two versions of the game. In the first
Tomtit [17]

Answer:

P(X=0)=(3C0)(0.1)^0 (1-0.1)^{3-0}=0.729

And the probability of loss with the first wersion is 0.729

P(Y=0)=(5C0)(0.05)^0 (1-0.05)^{5-0}=0.774

And the probability of loss with the first wersion is 0.774

As we can see the best alternative is the first version since the probability of loss is lower than the probability of loss on version 2.

Step-by-step explanation:

Previous concepts

The binomial distribution is a "DISCRETE probability distribution that summarizes the probability that a value will take one of two independent values under a given set of parameters. The assumptions for the binomial distribution are that there is only one outcome for each trial, each trial has the same probability of success, and each trial is mutually exclusive, or independent of each other".

Solution to the problem

Alternative 1

Let X the random variable of interest, on this case we now that:

X \sim Binom(n=3, p=0.1)

The probability mass function for the Binomial distribution is given as:

P(X)=(nCx)(p)^x (1-p)^{n-x}

Where (nCx) means combinatory and it's given by this formula:

nCx=\frac{n!}{(n-x)! x!}

We can find the probability of loss like this P(X=0) and if we find this probability we got this:

P(X=0)=(3C0)(0.1)^0 (1-0.1)^{3-0}=0.729

And the probability of loss with the first wersion is 0.729

Alternative 2

Let Y the random variable of interest, on this case we now that:

Y \sim Binom(n=5, p=0.05)

The probability mass function for the Binomial distribution is given as:

P(Y)=(nCy)(p)^y (1-p)^{n-y}

Where (nCx) means combinatory and it's given by this formula:

nCy=\frac{n!}{(n-y)! y!}

We can find the probability of loss like this P(Y=0) and if we find this probability we got this:

P(Y=0)=(5C0)(0.05)^0 (1-0.05)^{5-0}=0.774

And the probability of loss with the first wersion is 0.774

As we can see the best alternative is the first version since the probability of loss is lower than the probability of loss on version 2.

4 0
3 years ago
19. Write an algebraic expression for the phrase: 6 more than the product of 8 and n.
Sveta_85 [38]
(8xn)+6   would be your equation. please mark me as brainiest.
6 0
3 years ago
Read 2 more answers
The average cost per person of attending an online class depends on the number of people attending. If 20 people attend, the web
kondaur [170]

Answer:

The last table given See attached image)

Step-by-step explanation:

Notice that they are asking for the inverse function to the one with the detailed relationship given. The original relationship was assigning to the Domain of number of people attending, the Range of values for charges.

Therefore, the inverse function will be assigning in the opposite way: from the average charges (now the Domain of this relationship), to the number of people attending (now the Range of this relationship). The relationship should also maintain the original element to element connection:

What was:

(20, $10) should now be ($10, 20)

(26, $6.25) should now be ($6.25, 26)

(35, $4) should now be ($4, 35)

This is exactly represented by the last table (see also image attached)

5 0
3 years ago
Read 2 more answers
PLEASE HELP WILL MARK AS BRAINIEST!!!!!!!!!!
Airida [17]

Group up the like terms and combine them

2x^2 and -7x^2 add up to -5x^2

6x and 2x add up to 8x

1 and -3 add up to -2

We end up with -5x^2 + 8x - 2

<h3>Answer: Choice B</h3>
7 0
2 years ago
Read 2 more answers
Other questions:
  • Helppppppp pleaseeee
    9·2 answers
  • Question 19 What must be done to the graph of f(x) = |x| to obtain the graph of the function g(x) = 3/7 |x+4|-10?
    10·1 answer
  • You order two servings of pancakes and fruit cup. The cost of the fruit cup is $1.50. You leave a 15% tip. Your total bill is $1
    7·1 answer
  • Differentiating a Logarithmic Function in Exercise, find the derivative of the function. See Examples 1, 2, 3, and 4.
    11·1 answer
  • Write and solve an equation to find the value
    7·2 answers
  • Simplify the exponential expression:<br> (2x^2y^4)^3
    6·2 answers
  • Bobby and Gautham each save the same amount of money from each lawn they mow. What must be true for Gautham to have more money t
    14·1 answer
  • Use the equation s=5q+8 to find the value of s when q=1.
    13·1 answer
  • Find the measure of the central angle indicated and place answer below:
    9·1 answer
  • (GIVING BRAINLIEST &amp; POINTS)
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!