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

When testing gas pumps for accuracy, fuel-quality enforcement specialists tested pumps andfound that 1304 of them were not pumping accurately (within 3.3 oz when 5 gal ispumped),and 5689 pumps were accurate. Use a 0.01 significance level to test the claimof an industryrepresentative that less than 20% of the pumps are inaccurate.

Answers

Answer:

The p-value of the test statistic from the standard normal table is 0.0017 which is less than the level of significance therefore, the null hypothesis would be rejected and it can be concluded that there is sufficient evidence to support the claim that less than 20% of the pumps are inaccurate.

Step-by-step explanation:

Here, 1304 gas pumps were not pumping accurately and 5689 pumps were accurate.

x = 1304, n = 1304 + 5689 = 6993

The level of significance = 0.01

The sample proportion of pump which is not pumping accurately can be calculated as,

The claim is that the industry representative less than 20% of the pumps are inaccurate.

The hypothesis can be constructed as:

H0: p = 0.20

H1: p < 0.20

The one-sample proportion Z test will be used.

The test statistic value can be obtained as:

[tex]Z=\frac{\hat{p}-P}{\sqrt{\frac{P(1-P))}{n}}}\\\\Z=\frac{0.186-0.20}{6993}\\\\Z=-2.927[/tex]

find slope from the pair of points (2,-2) (-5,4)

Answers

Answer:

-6/7

Step-by-step explanation:

If we have two points, we can find the slope using the slope formula

m = ( y2-y1)/(x2-x1)

   = ( 4 - -2)/( -5 -2)

   = ( 4+2) /(-5-2)

    = 6/-7

   = -6/7

The volume of a right cylinder is 277 cubic centimeters, and the
height is 3 centimeters (cm). What is the radius of the cylinder?

Answers

Answer:

3cm

use the formula for the volume of a cylinder

and substitute

3cm maybe is the correct answer

Mrs. Smith bought 6.2 kg of cassava and 1 kg 250 g of bananas. What is the total weight in kg? ​

Answers

Step-by-step explanation:

my answer is in the image above

3. Find the length of X (in the picture) plssss I need help.​

Answers

Answer:

imagine the upper triangle as the same as the lower one, but rotated by 180° around the corner point they share, and resized.

the base of the smaller triangle is resized by a factor of 3/4.5, or reduced: 1/1.5

we just take the length from the hypotenuse of the bigger triangle and resize it to, either by multiplying with 1/1.5 or by dividing by 1.5

personally, I find the latter easier.

x = 7.5/1.5 = 5

which of the following is the quotient of the rational expressions shown below? x/3x-1 divided by x-2/2x ?

Answers

Answer:

Below.

Step-by-step explanation:

x/3x-1 divided by x-2/2x

= x/3x-1 * 2x/x-2

= 2x^2/(3x-1)(x-2).

If we expand the denominator it is

2x^2/(3x^2-7x+2).

PLEASE HELP ME WITH THIS ONE QUESTION
How many combinations with repetition are allowed if n = 6 and r = 3?

A) 27
B) 20
C) 18
D) 56

Answers

Answer:

D. 56

Step-by-step explanation:

The general solution for the number of combinations with repetition is represented by the following expression:

[tex]x = \frac{(n + r - 1)!}{r!\cdot (n-1)!}[/tex] (1)

Where:

[tex]n[/tex] - Total number of elements.

[tex]r[/tex] - Number of the sample.

If we know that [tex]n = 6[/tex] and [tex]r = 3[/tex], then the number of combinations with repetition:

[tex]x = \frac{(6+3-1)!}{3!\cdot (6-1)!}[/tex]

[tex]x = 56[/tex]

Hence, correct answer is D.

Find the probability

Answers

Answer:

[tex]\frac{1}{5}[/tex]

Step-by-step explanation:

Red: 2

Blue: 4

Yellow: 4

[tex]\frac{2}{10}[/tex]

[tex]\frac{2/2}{10/2}=\frac{1}{5}[/tex]

I need help I’ll give u brainlest

Answers

Answer:

216 yd³

Step-by-step explanation:

Volume of a rectangular prism

= product of the three orthogonal sides

= 6yd * 6yd * 6yd

= 216 yd³

Answer:

216

Step-by-step explanation:

:)


The length of a rectangle should be 8 meters longer than 7 times the width. If the length must be
between 43 and 106 meters long, what are the restrictions for the width, x?

Answers

Answer:

The restrictions for x would be 14 > x > 5.

Step-by-step explanation:

Let the length of the rectangle be y and the width be x.

That being said, the equation would be as follows:

[tex]y = 7x + 8[/tex]

[tex]y - 8 = 7x[/tex]

[tex]x = \frac{y-8}{7}[/tex]

Therefore, substituting the two values of y into the equations, we would get:

[tex]x = \frac{43-8}{7}[/tex]

[tex]x = \frac{35}{7}[/tex]

[tex]x = 5[/tex]

And:

[tex]x = \frac{106-8}{7}[/tex]

[tex]x = \frac{98}{7}[/tex]

[tex]x = 14[/tex]

Therefore, x would be between 5 and 14, and the restrictions for x would be 14 > x > 5.

Hope this helped!

Rachel is driving to visit her mother, who lives 250 miles away. How long will the
drive be, round-trip, if Rachel drives at an
average speed of 40 mph?

Answers

Answer:

Time for a round trip = 12.5 hours

Step-by-step explanation:

Mother's house = 250 miles

Total distance for the round trip = 250 + 250 = 500 miles

Given speed = 40 mph

Find time .

[tex]Speed = \frac{distance }{Time }\\\\Time = \frac{distance }{speed } = \frac{500}{40} \\\\Time = 12.5 \ hours[/tex]

About 12.5 hours (hope this helps sorry if I’m wrong)

HELP!!!!
Car Survey In a survey of 3,200 people who owned a certain type of​ car, 2,080 said they would buy that type of car again. What percent of the people surveyed were satisfied with the​ car?

___% of the people surveyed were satisfied with the car.

Answers

Answer:

65%

Step-by-step explanation:

2080/3200times100%

6 Write 89.4945 correct to (a) nearest whole number, [1] (b) two decimal places. ​

Answers

Answer:

a)89

b)89.45

Step-by-step explanation:

How do you find the surface area

Answers

Answer:

It depends on what shape you have. Here are some formulas for different shapes.

Step-by-step explanation:

Rectangular prism: 2lw + 2lh + 2wh

Cylinder: 2 pi r² + 2 pi rh

Sphere: 4 pi r²

Cone: pi r² + pi rl

Square-based pyrimid: 1/2lp +B

I hope this helps!

If 82 pages had between 7 and 9 errors, what was the approximate total number of pages in the book?

A: 202 pages

B: 120 pages

C: 68 pages

D: 56 pages

Answers

Answer:

120 pages

Step-by-step explanation:

The mean number of error per page = 8 ; Standard deviation = 1

Given that :

82 pages has between 7 and 9 errors per page ;

Using the empirical rule :

7 = 8 - 1 = 1 standard deviation below the mean

9 = 8 + 1 = 1 standard deviation above the mean

1 standard deviation from the mean = 68%

Hence, 82 pages = 68%

Approximate total pages :

68% = 82

100% = total pages, x

0.68 = 82

1 = x

0.68x = 82

x = 82 / 0.68

x = 120.588

Hence, total number of pages is 120 pages

Solve the compound inequality 7x ≥ –56 and 9x < 54.

Answers

Answer: first one is x≥-8 second one is x<6

Step-by-step explanation: for the first one you divide both sides by 7 and the second won do the same except divide by 9 on each side

Hello,

7x ≥ -56

⇔ 7x / 7 ≥ -56 / 7

⇔ x ≥ -8

S = [-8 ; +∞[

9x < 54

⇔ 9x / 9 < 54 / 9

⇔ x < 6

S = ]-∞ ; 6]

:-)

a bag contains 5white and 3red identical balls.if the balls are drawn at random after the other without replacement. what is the probability that the first red ball is picked at fifth draw​

Answers

Answer:

2/7

Step-by-step explanation:

he speeds (in MPH) of automobiles traveling in a city are given below:
20, 35, 42, 52, 65, 49, 24, 37, 23, 41, 50, 58
The mean speed of the cars is

Answers

Answer:

Mean speed = 41.3 mph

Step-by-step explanation:

Given that,

The speeds of an automobiles are given below:

20, 35, 42, 52, 65, 49, 24, 37, 23, 41, 50, 58

We need to find the mean speed of the cars.

Mean = sum of observations/ no. of observation

[tex]M=\dfrac{20+35+42+52+65+49+24+37+23+41+50+58}{12}\\\\M=41.3[/tex]

So, the mean speed of the cars is equal to 41.3 mph.

Can anyone please help me

Answers

Answer:

The experiment shows the frequency of results derived from tossing a coin

Please help me esperas this!!

Answers

9514 1404 393

Answer:

  tan(φ) = (x² -1)/(2x)

Step-by-step explanation:

In a right triangle, the tangent of one of the acute angles is the ratio of the opposite side to the adjacent side. Here, the length of the adjacent side is not given, but can be found from the Pythagorean theorem.

  adjacent side = √((x² +1)² -(x² -1)²) = √((x⁴ +2x² +1) -(x⁴ -2x²+1))

  adjacent side = √(4x²) = 2x

Then the tangent ratio is ...

  tan(φ) = (opposite side)/(adjacent side)

  tan(φ) = (x² -1)/(2x) . . . . . . for x > 0

Need help with this question

Answers

Answer:

cant see it

Step-by-step explanation:

just type it out

Consider the polygon defined by the coordinates A(−3, 5), B(3, 7), C(6, −2), and D(0, −4). Which statements are correct?

A) Area of ABCD = 60 units2
B) AB = 60 units
C) CD = 40 units
D) BC = 80 units
E) Perimeter of ABCD ≈ 31.6 units

Answers

Answer:

A,C,E

Step-by-step explanation:

A landscaper is making a garden bed in the shape of a rectangle. The length of the garden bed is 2.5 feet longer than twice the width of the bed. The area of the garden bed is 62.5 square feet. What is the perimeter of the garden bed, in feet?

Answers

Answer:

I'll setup the problem, then you can do the calculations

Step-by-step explanation:

Perimeter = 2width(W) + 2length (L)

Area = LW

L = 2.5 + 2W

LW = 62.5

substitute L in equation for area

[tex]2.5W + {2W}^{2} = 62.5 \\ \\ {2W}^{2} + 2.5 - 62.5 \\ \\ use \: quadratic \: solution \\\frac{ - b ± \sqrt{ {b}^{2} - 4ac}}{2a} [/tex]

a = 2; b = 2.5; c = 62.5

send a comment if you have a question

The perimeter of a rectangle.

P = 2 ( length + width )

The area of a rectangle.

Area = length x width

The perimeter of the rectangle shape garden bed is 32 feet.

What is a rectangle?

A rectangle is a two-dimensional shape where the length and width are different.

The area of a rectangle is given as:

Area = Length x width

We have,

A rectangular shape Landscaper:

Width = W

Length = 2.5 + W

Area = 62.5 square feet

The perimeter of a rectangle.

P = 2 ( length + width )

The area of a rectangle.

Area = length x width

Now,

Area = 62.5

length x width = 62.5

(2.5 + W)  x W = 62.5

2.5W + W² = 62.5

W² + 2.5W = 62.5

W² + 2.5W - 62.5 = 0 ______(A)

The roots of this equation (A) are:

W = 6.75 and W = -9.25 (eliminated)

Now,

Length = 2.5 + 6.75 = 9.25 feet

Width = 6.75 feet

The perimeter of the rectangle.

P = 2 ( length + width )

P = 2 x (9.25 + 6.75)

P = 2 x 16

P = 32

Thus,

The perimeter of the rectangle shape garden bed is 32 feet.

Learn more about rectangles here:

https://brainly.com/question/15019502

#SPJ2

simplify 4-x squared ÷2x-x squared

Answers

Answer:

4-[tex]\frac{x}{2}[/tex]-[tex]x^{2}[/tex]

Step-by-step explanation:

If m and n are two rational numbers, then m+n lies between m and n
2​

Answers

Answer:

19thuuzvdkedhddudhjdhdhfghfidhdhdhfheidhfjr9fddy6gqufgaqgxhrhrydudkydtdffyztstdtiztuytzmyrsyrststststsut0egjjefeigjeojokfzbkehfzifgihrxeudihxizhieg9zfjz9deffejfjiefeihfiefhiefhefiefh3fr3hi3jfhfhfkzdhf2ivuvdfuvuzfecfkfidyfl5a4

Value of 140 degree in diagrams​

Answers

Answer:

There are 360º in a circle. 140º has been allocated to one angle.

There are 360-140 = 220º left in the circle.

Step-by-step explanation:

Use technology to help you test the claim about the population mean, mu, at the given level of significance, alpha, using the given sample statistics. Assume the population is normally distributed.
Claim: μ>1220;α=0.08; σ=211.67.
Sample statistics: x=1235.91,n=300
Identify the null and alternative hypotheses and calculate the standardized test statistic.

Answers

Answer:

H0 : μ = 1220

H1 : μ > 1220

Test statistic = 1.30

Step-by-step explanation:

Sample mean, x = 1235.91

Standard deviation, σ = 211.67

Sample size, n = 300

The hypothesis :

Null ; H0 : μ = 1220

Alternative ; H1 : μ > 1220

Tbe test statistic :

(x - μ) ÷ (σ/√(n))

(1235.91 - 1220) ÷ (211.67/√(300))

15.91 / 12.220773

= 1.3018

= 1.30

Which represents where f(x) = g(x)

Answers

Answer: f(2) = g(2) and f(0) = g(0)

Explanation: The graphs equal the same thing (intercept) at those x values!

Evaluate if 8y + 4x – (2x + 3) if x = – 2 and y = 6

Answers

Answer:

41

Step-by-step explanation:

substitute x=-2 and y=6, we know

8×6 +4×(-2) -(2×(-2) +3) = 48-8-(-1) =41

Answer:

41

General Formulas and Concepts:

Pre-Algebra

Order of Operations: BPEMDAS

Brackets Parenthesis Exponents Multiplication Division Addition Subtraction Left to Right

Step-by-step explanation:

Step 1: Define

Identify

8y + 4x - (2x + 3)

x = -2

y = 6

Step 2: Evaluate

Substitute in variables:                                                                                     8(6) + 4(-2) - (2 · -2 + 3)(Parenthesis) Multiply:                                                                                      48 - 8 - (-4 + 3)(Parenthesis) Add:                                                                                            48 - 8 - (-1)Subtract:                                                                                                            41

she sells 6adult tickets and 5 children tickets on the first day totaling $112.50 and on the second day she sells 8adult tickets and 4 childrens tickets totaling $130. write an equation for each day and use the elimination method

Answers

Answer:

Cost of adult ticket = $12.5

Cost of child ticket = $7.5

Step-by-step explanation:

Given:

Cost of 6 adult ticket and 5 child ticket = $112.5

Cost of 8 adult ticket and 4 child ticket = $130

Find:

Equation and solution

Computation:

Assume;

Cost of adult ticket = a

Cost of child ticket = b

So,

6a + 5b = 112.5....eq1

8a + 4b = 130 ......eq2

Eq2 x 1.25

10a + 5b = 162.5 .....eq3

eq3 - eq1

4a  = 50

Cost of adult ticket = $12.5

8a + 4b = 130

8(12.5) + 4b = 130

Cost of child ticket = $7.5

Other Questions
The quadratic regression equation that models these data is y = - 0.34x ^ 2 + 4.43x + 3.46 Using the quadratic regression equation what was the predicted profit in year 8? A. $ 17.14 million B. $ 17 million C. $ 16.8 million D. $16 million The amounts below show the change (measured in feet) in water level over four months. What is theaverage monthly change in water level?-0.84, 1.25, -1.59, 0.42 Which of the following could not act as a medium for a mechanical wave?a) air b) empty space c) liquid water d) a solid rope A birthday wish to someone that youre not that close to Just doing a experiment.......................... for 21 points Students are each given a 20-gram sample of an unknown solid compound in a clear plastic bag. They are instructed to break the material into smaller parts by gently hitting it with a hammer. Some of the parts break into large chunks and some look like a fine powder.Which statement correctly describes these broken pieces of the sample?The fine powder pieces are individual atoms broken from the solid.The larger pieces are still compounds and the smaller pieces are elements.Each piece contains the same number of atoms.Each piece contains the same proportion of different elements. Simplify completely.......... What is the past tense of cost Consider a 92.0 kg ice skater who is spinning on the ice. What is the moment of inertia of the skater, if the skater is approximated to be a solid cylinder that has a 0.140 m radius and is rotating about the center axis of the cylinder. Evidence-based supports the conclusion that the Grims fairytales were not meant for children PLEASE HELP ASAP! which answer choice?a. (2, 3)b. (4, 0)c. (4, 2)d. (6, 3) Which is way to evaluate a risk factor Identifying ones values, strengths, challenges,opportunities, and interests are part of personal development.True or false? If a map has a scale of 1 cm: 500 kilometers and the distance from Kingston to Port-Au-Prince, Haiti is 8 centimeters, then how far is the actual distance between Kingston and Port-Au-Prince? A bond with a face value of $1,000 has 10 years until maturity, carries a coupon rate of 7.3%, and sells for $1,170. Interest is paid annually.a. If the bond has a yield to maturity of 10.7% 1 year from now, what will its price be at that time? (Do not round intermediate calculations. Round your anser to nearest whole number.)b. What will be the annual rate of return on the bond? (Do not round intermediate calculations. Enter your answer as a percent rounded to 2 decimal places. Negative amount should be indicated by a minus sign.)c. Now assume that interest is paid semiannually. What will be the annual rate of return on the bond?Slightly greater than your part b answerSlightly less than your part b answerd. If the inflation rate during the year is 3%, what is the annual real rate of return on the bond? (Assume annual interest payments.) (Do not round intermediate calculations. Enter your answer as a percent rounded to 2 decimal places. Negative amount should be indicated by a minus sign.) Answer all the qustion get 10 points and get marked as a brainlist!!1.The Mississippi River and the St. Lawrence Seaway give the Midwest access to the ocean.TrueFalse2.British laws were unfair to the colonists.TrueFalse3.Colonists in the thirteen colonies refused to pay taxes to England.TrueFalse4.Mexico grew dissatisfied with Spanish rule and wanted:independenceEnglish ruleits own king5.After independence, the first Mexican rulers were:dictatorsmonarchspresidents6.Today, Mexico is governed by a:dictatorpresidentmonarch7.Mexican culture is a combination of and original Native American influences.FrenchEnglishSpanishPortuguese8.Immigration and urbanization were a result of:industrializationtransportationcommunication9.The United States acquired territory during:urbanizationexpansionindustrialization10.The first major territory obtained by the United States was:the Gadsden PurchaseTexasthe Louisiana Purchase Linda's accent it seems, to me is fake. Is this sentence correctly punctuated? Give examples of the ways in which each of the five factors of production can affect the business performance of McDonald's or Walmart. A bag contains 6 black, 4 blue, and 8 white marbles. What is the probability that a marble drawn from the bag will be white?a.1/18b.2/5c.4/9d.4/5 How did new communication technologies affect the economy in 1800s?