function travelSpeed = CalculateTravelSpeed(startX, startY, endX, endY, travelTime) % startX, startY: Starting coordinates % endX, endY: Ending coordinates % travelTime: Travel time in hours % Write an anonymous function to compute distance given two coordinates % Function name: EuclideanDist % Function inputs: x1, y1, x2, y2 % EuclideanDist = ... % Do not modify the statement below travelSpeed = EuclideanDist(startX, startY, endX, endY) / travelTime; end

Answers

Answer 1

Answer:

The functions in Python is as follows:

from math import *

def CalculateTravelSpeed(startX,startY,endX,endY,travelTime):

   travelSpeed = EuclideanDist(startX, startY, endX, endY) / travelTime

   return travelSpeed

def EuclideanDist(startX, startY, endX, endY):

   dist = sqrt((startX - endX)**2 + (startY - endY)**2)

   return dist

Step-by-step explanation:

from math import *

This defines the CalculateTravelSpeed function

def CalculateTravelSpeed(startX,startY,endX,endY,travelTime):

This calls the EuclideanDist function to calculate the distance; Next, the speed is calculated

   travelSpeed = EuclideanDist(startX, startY, endX, endY) / travelTime

This returns the calculated speed

   return travelSpeed

This defines the EuclideanDist function

def EuclideanDist(startX, startY, endX, endY):

This calculates the distance from the given coordinates

   dist = sqrt((startX - endX)**2 + (startY - endY)**2)

This returns the calculated distance

   return dist


Related Questions

You have $45 to spend on notebooks and each one costs $5.
Write an inequality for the possible number of notebooks you
could buy, then find out the maximum number of notebooks
you could buy.
notebooks

Answers

Answer:

9notebooks

Step-by-step explanation:

5×y≤45( where y is number of notebooks)

$5=1notebook

$45=$45/$5x1

=9

therefore, you'll be able to buy nine notebooks with$45

Answer:

$5n = $45

n = 9

Step-by-step explanation:

Let n represent the amount of notebooks

$5n = $45

Divide each side by 5

$5n/5 = $45/5

n = 9

so the maximum number of notebooks you can buy is 9

A family uses 15 gallons of milk every 3 weeks. At that rate, about how many gallons of milk will they need to purchase in a year’s time?

Give your answer as a whole number.
ONLY ANSWER IF YOU KNOW THE ANSWER

Answers

Answer:

87 gallons

Step-by-step explanation:

5 gallons: 3 weeks = x gallons: 52 weeks

5/3 = x/52

3x = 260

x= 86.6, about 87 gallons

A corollary needs which of the following geometric terms to be proven true?

A. Theorem
B. Identity
C. Common notion
D. Inverse

Answers

Answer:

B. Identity

Step-by-step explanation:

Can someone please answer this please

Answers

Answer: I don't know but i have the formula.

Step by Step: [tex]A=\frac{1}{2}b h[/tex]

PLEASE HELP ASAP Determine the period.

Answers

That’s easy_________

A box contains four blue and eight red balls. Jim and Jack start drawing balls from the box, respectively, one at a time, at random, and without replacement until a blue ball is drawn. What is the probability that Jack draws the blue ball?

Answers

Answer:

the probability that Jack draws the blue ball is 0.38539

Step-by-step explanation:

Given the data in the question;

box contains

blue balls = 5

red balls = 8

Jim and Jack start drawing balls from the box, respectively, one at a time, at random, and without replacement

Now,

on the first attempted;

⇒ ( 8/13) × ( 5/12) = 10/39  

on the second attempt;

⇒ ( 8/13 ) ( 7/12) ( 6/11 ) ( 5/10 ) = 14/143

on the third attempt;

⇒ ( 8/13 ) ( 7/12) ( 6/11 ) ( 5/10 ) ( 4/9 ) ( 5/8 ) = 35/1287

on the fourth attempt;

⇒  ( 8/13 ) ( 7/12) ( 6/11 ) ( 5/10 ) ( 4/9 ) ( 3/8 ) ( 2/7 ) ( 5/6 ) = 5/1287

so we add everything;  

⇒ 10/39 + 14/143 + 35/1287 + 5/1287

= 0.38539

Therefore, the probability that Jack draws the blue ball is 0.38539

Determine whether carpeted rooms have more bacteria than uncarpeted rooms at the level of significance. Normal probability plots indicate that the data are approximately normal and boxplots indicate that there are no outliers.

Carpeted Un-Carpeted
15.9 8.1 15 7.2 10.4 6.1
11.2 16 11.2 6.8 11.3 6.8
8.6 10 12.1 6.3

Requried:
State the null and alternative hypotheses. Let population 1 be carpeted rooms and population 2 be uncarpeted rooms.

Answers

Answer:

The null (H[tex]_{0}[/tex]) and alternative (H[tex]_{1}[/tex]) hypotheses can be stated as follows:

H[tex]_{0}[/tex]:  μ[tex]_{1}[/tex] = μ[tex]_{2}[/tex].

H[tex]_{1}[/tex]: μ[tex]_{1}[/tex] > μ[tex]_{2}[/tex].

Step-by-step explanation:

In the question, the given assertion is that carpeted rooms have more bacteria than uncarpeted rooms, i.e. μ[tex]_{1}[/tex] > μ[tex]_{2}[/tex].

The assertion made in the question can either be the null hypothesis (H[tex]_{0}[/tex]) or the alternate hypothesis (H[tex]_{1}[/tex]). An equality must be present in the null hypothesis. The alternative hypothesis expresses the exact opposite of the null hypothesis if the claim is the null hypothesis.

Therefore, the null (H[tex]_{0}[/tex]) and alternative (H[tex]_{1}[/tex]) hypotheses can be stated as follows:

H[tex]_{0}[/tex]:  μ[tex]_{1}[/tex] = μ[tex]_{2}[/tex].

H[tex]_{1}[/tex]: μ[tex]_{1}[/tex] > μ[tex]_{2}[/tex].

HELPP PLSS ILL MARK BRIANLIEST

Answers

Answer:

128cm

Step-by-step explanation:

Your Welcome :)

Daryl invested $2,200 for 3 years. He received interest of $264. What was the interest rate?

Answers

Answer:

4%

Step-by-step explanation:

264 interest/3 years=88 interest/year

principal x interest rate =interest/year

2200 x interest rate =88

interest rate =88/2200

interest rate =.04 or 4%

Find the slope and recept of the line Y=7/5x-3

Answers

Answer:

The slope 7/5 and the y intercept is -3

Step-by-step explanation:

Y=7/5x-3

This equation is written in slope intercept form

y = mx+b where m is the slope and b is the y intercept

The slope 7/5 and the y intercept is -3

A random sample of 50 male employees is taken at the end of a year and the mean
number of hours of absenteeism for the years is found to be 63 hours. A similar sample of
50 female employees has mean of 66 hours. Could these samples be drawn from a
population with the same mean and standard deviation 10 hours?​

Answers

Answer:

Yes the samples can be drawn from a population with the same mean and standard deviation 10 hours

Step-by-step explanation:

We are given;

Sample mean for male employees; x1¯ = 63

Sample mean for female employees; x2¯ = 66

Sample size = 50

Standard deviation; σ = 10

First,let's define the hypotheses of the question;

Null hypothesis; H0: μ1 = μ2

Alternative hypothesis; Ha: μ1 ≠ μ2

Now, let's find the test statistic from the formula;

z = (x1¯ - x2¯)/(σ√(2/n))

Thus;

z = (63 - 66)/(10√(2/50))

z = -3/2 = - 1.5

Now, we are not given the significance value but usually when it is not given, we can adopt α = 0.05.

Thus, from online p-value from z-score calculator using; z = -1.5; α = 0.05; two tailed test; we have;

p-value = 0.13364

The p-value is greater than the significance value and thus we will fial to reject the null hypothesis and conclude that these samples can be drawn from a population with the same mean and standard deviation

how do I find angle 1?

Answers

Answer:

60º

Step-by-step explanation:

The two triangles on the left are equilateral as the sides are all conguent.

The angles of an equilateral triangle are all 60º

Therefor the two angles to the left of angle 1 are both 60º for a combined value of 120º

Angle 1 must be 180 - 120 = 60º

To find angle 1, you have to add all adjacent angles, which equal 180°

PYTHAGORAS
work out the side of b.
give your answers to one decimal place

Answers

Answer:

12 cm

General Formulas and Concepts:

Pre-Algebra

Order of Operations: BPEMDAS

Brackets Parenthesis Exponents Multiplication Division Addition Subtraction Left to Right  

Equality Properties

Multiplication Property of Equality Division Property of Equality Addition Property of Equality Subtraction Property of Equality

Trigonometry

[Right Triangles Only] Pythagorean Theorem: a² + b² = c²

a is a leg b is another leg c is the hypotenuse

Step-by-step explanation:

Step 1: Define

Identify variables

a = 12 cm

c = 17 cm

Step 2: Solve for b

Substitute in variables [Pythagorean Theorem]:                                            12² + b² = 17²Evaluate exponents:                                                                                         144 + b² = 289[Subtraction Property of Equality] Subtract 144 on both sides:                     b² = 145[Equality Property] Square root both sides:                                                      b = √145[√Radical] Evaluate:                                                                                         b = 12.0416Round:                                                                                                               b ≈ 12.0

There are 9 students in a class: 7 boys and 2 girls.
If the teacher picks a group of 3 at random, what is the probability that everyone in the group is a boy?

Answers

Answer: 9/7

Step-by-step explanation:

Two expressions of the equation

Answers

Step-by-step explanation:

let the expression of the equation be :

x+y=0

x²+y²= 5

hope it is helpful to you

Enter the ordered pair that is the solution to the system of equations graphed
below.
y = -3x + 7
y = -2x + 5

Answers

Answer:

(2,1)

Step-by-step explanation:

-3x + 7 = -2x + 5

x = 2

y = -6 + 7

y = 1

Answer:

(2,1)

Step-by-step explanation:

Remark

One thing you need to remind yourself of: The y value in both equations must be the same.

That means that the two right hand values are

-3x + 7 = - 2x + 5         Subtract 5 from both sides.

      -5              -5

-3x + 2 = - 2x               Add 3x to both sides

+3x          +3x

       2 = x

Now use one of the equations to solve for y

y = -2x + 5

y = -2(2) + 5

y = - 4 + 5

y = 1

We should check this by graphing it. Notice the two graphs do cross at (2,1) just as predicted.

how many kilometers are there in 9000000cm​

Answers

Answer:

90 kilometers

Step-by-step explanation:

https://www.bing.com/search?q=kilometers+are+there+in+9000000cm

A scientist is conducting an experiment on two types of bacteria to determine which type will grow faster in a pool. After collecting data for two weeks, she finds that she can model the growth rates as follows:

Bacteria 1: y = 4x

Bacteria 2: y = 4x2

In these models, y represents the number of bacteria colonies and x represents the number of hours.
Based on these models, which type of bacteria is growing faster?

Answers

Answer:

bacteria 1

Step-by-step explanation:

i got it right

Ahmed can 8 1/3 km in one hour. how much distance will he cover in 2 2/5​

Answers

Answer:

In 2 2/5 hours, he will cover 20 km.

Step-by-step explanation:

Given that,

Ahmed can 8 1/3 km in one hour.

We need to find the distance he cover in 2 2/5 h.

In 1 hour = 8 1/3 km = 25/3 km

2 2/5 hour means 12/5 hour

In 12/5 hour = 12/5 × 25/3 km

= 20 km

So, in 2 2/5 hours, he will cover 20 km.

(X+3)(3x^2+8x+9) multiply the polynomials

Answers

Answer:

3x^3+8x^2+9X+9X^2+24X+27=3X^3+17X^2++33X+27

Step-by-step explanation:

Answer:3x^3+8x^2+9X+9X^2+24X+27=3X^3+17X^2++33X+27

Step-by-step explanation:

A cosmetics salesman earns a basic wage of $2000 per month plus 10% commission on all sales he makes. Calculate his total wage for the month when he sold $89,000 worth of cosmetics.

Answers

bsbdhhdjdjdhdjjrjdhdndhnrjf

please help me look at the photo!

Answers

First of all multiply both sides by the power of 3 to cancel out the cube roots.

So you will be left out with:

X+4 > -x

Now simplify:

4 > -x-x

4> -2x

4/-2 > -2x/-2

-2 > x

Final answer:

It’s C , x < -2

Good luck and best of wishes!!

2x-4=20
Please fast with steps !

Answers

Answer:

x=12

hope it will helpful to you

A man at ground level measures the angle of elevation to the top of the building to
be 87°. If at this point, he is 20 meters away from the building, what is the height of
the building?​

Answers

Answer:

The bulding is 381,623 meters high.

Step-by-step explanation:

To dertermine the height of the bulding I would use tanα = rectangulair side / closest rectangulair side.

19,08 = the height/ 20m.

<=> 19,08.20m= the height = 381,623 m

ASAP PLEASE!!The table and the relative frequency histogram show the distribution of the number of tails and three coins are tossed. Find the probability P(T=3). write your answer as a fraction.

Answers

Given:

The table and the relative frequency histogram show the distribution of the number of tails and three coins are tossed.

To find:

The probability [tex]P(T=3)[/tex].

Solution:

In the given table T represents the number of tails.

From the given table it is clear that the value of probability is [tex]\dfrac{1}{8}[/tex] and [tex]T=3[/tex]. So,

[tex]P(T=3)=\dfrac{1}{8}[/tex]

Therefore, the probability [tex]P(T=3)[/tex] is equal to [tex]\dfrac{1}{8}[/tex].

Lydiagrace33

Image attached
A) 1 point Write an inequality for this graph . Use the shift key and the key or key to type the < or > symbol . *

B) Water boils when the temperature is at least 212 degrees F. Which inequality shows this situation ?

C) When the temperature drops below 50 degrees F , crickets usually stop chirping . Which inequality shows this situation ?

D) Explain the difference between the meaning of a closed
circle and an open circle on a graph of an inequality .

Answers

x is greater than -1.5
D
A
a closed circle shows that the variable can be equal to the number it is on, and an open circle shows that it cannot
Hope this helps!

Hi pls helppppppppppp

Answers

Answer:

it could only accomplish it's goal on Friday

Step-by-step explanation:

all you had to do was multiply 8 with the number of people and 2 with the number of tickets on each day and add them together to see if it was more than 1650. it was only more on Friday

Did her answer help?^^^???

Select the correct answer. What is the value of this expression when g= -3.5? 8-[2g-5]

Answers

Answer:

20

Step-by-step explanation:

2g =  -3.5x2 = -7

-7 - 5= -12

8 - -12=20

Find the common ratio of the geometric sequence − 1 , − 9 , − 81 ,

Answers

Step-by-step explanation:

everything can be found in the picture

PLEASE HELP!!

Jo measures the length of a rope and records her measurement correct to the nearest ten centimetres.

The upper bound for her measurement is 12.35 m.
Write down the measurement she records.

Answers

Answer:

1230 cm

Step-by-step explanation:

convert metres to centimetres.

the answer must be less than upper bound.

[tex]1225 \leqslant 1230 < 1235[/tex]

Other Questions
by selling 33m of cloth ,prabha gained the selling price 11 m.what is the gain percent Write the next three terms in this pattern: 1, 4, 3, 6, 5, 8, 7, What is the direct variation between x and y when x=7 and y=3 1/2? Which integer represents a gain of 4 yards in a football game? Literary works like Equianos autobiography were helpful in promoting _____.the settling of the American frontierthe Abolitionist movementthe fight for Independencethe Suffragist movement What happens if simultaneous Equations have two of the same variable like below? How would I solve it?6A + 4B + 5C = 3906A + 4B + 5.75C = 405 Solve for H.[tex]V = \pi r^{2} h[/tex] first good answer gets brainiest A body of mass 5 kg moving with velocity 10m/s attains a velocity of 30m/s in 20 seconds, after applying the force. The amount of force applied will be:a 10Nb 20Nc 5Nd 15N If a line has a slope of 3, what is the slope of a line perpendicular to it? Rami is solving the equation for x .6x 1 = 56x 1 Empty square 1 = (5 Empty square 1)6x = 66x Empty circle 6 = 6 Empty circle 6x = 1Which operation symbols should Rami write in the Empty squareand the Empty circle? Whats the simplification A balloon blown up with air hanging in a room. as the air in the room becomes colder the balloon becomes smaller because the molecules of air become? According to the National Association of Colleges and Employers, the average starting salary for new college graduates in health sciences was . The average starting salary for new college graduates in business was (National Association of Colleges and Employers website). Assume that starting salaries are normally distributed and that the standard deviation for starting salaries for new college graduates in health sciences is . Assume that the standard deviation for starting salaries for new college graduates in business is . Find P(0), P(1) and P(2) for each of the following polynomial.[tex]p(y) = 2 + y + 2 {y}^{2} - {y}^{3} [/tex] Determine which of the four levels of measurement (nominal, ordinal, interval, ratio) is most appropriate for the data below. Types of restaurants (fast food, organic food, sea food, etc.)A. The ratio level of measurement is most appropriate because the data can be ordered, differences (obtained by subtraction) can be found and are meaningful, and there is a natural starting point. B. The nominal level of measurement is most appropriate because the data cannot be ordered. C. The interval level of measurement is most appropriate because the data can be ordered, differences (obtained by subtraction) can be found and are meaningful, and there is no natural starting point. D. The ordinal level of measurement is most appropriate because the data can be ordered, but differences (obtained by subtraction) cannot be found or are meaningless. plz answer me from the photo In function notation, f(x) is another way of saying ______.1.)y2.)x3.)or none of the above [tex] \frac{1.107}{123} \times \frac{1.998}{333} = [/tex] A scale model of a sculpture has a scale of 2:49.The height of the model is 24 cm.Find the height of the actual sculpture.Give your answer in m.