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
Ugo [173]
3 years ago
11

Random walk. A Java programmer begins walking aimlessly. At each time step, she takes one step in a random direction (either nor

th, east, south, or west), each with probability 25%. She stops once she is at Manhattan distance r from the starting point. How many steps will the random walker take
Mathematics
1 answer:
ankoles [38]3 years ago
7 0

Step-by-step explanation:

Hi, your question isn't totally complete. Here's the likely full question:

Random walk. A Java programmer begins walking aimlessly. At each time step, she takes one step in a random direction (either north, east, south, or west), each with probability 25%. She stops once she is at Manhattan distance r from the starting point. How many steps will the random walker take? This process is known as a two-dimensional random walk.

Write a program RandomWalker.java that takes an integer command-line argument r and simulates the motion of a random walk until the random walker is at Manhattan distance r from the starting point. Print the coordinates at each step of the walk (including the starting and ending points), treating the starting point as (0, 0). Also, print the total number of steps taken.

You might be interested in
12p &lt; 96<br> A. p &lt; 8<br> B. p &lt; 108<br> C. p &lt; 84<br> D. p &gt; –8
inessss [21]

Solution:

<u>Note that:</u>

  • Given inequality: 12p < 96

<u>Dividing both sides by 12:</u>

  • 12p < 96
  • => 12p/12 < 96/12
  • => p < 8

Correct option is A.

<u />

3 0
3 years ago
Read 2 more answers
there are 12 marbles in a bag 1 black 2 orange 4 green and 5 yellow what fraction of the marbles are yellow
IRISSAK [1]
I feel like it would be 5/12, but im not 100% sure
5 0
3 years ago
Read 2 more answers
A simple random sample from a population with a normal distribution of 99 body temperatures has xbar = 99.10°F and s = 0.64°F. C
motikmotik

The general formula for the margin of error is e = (zs)/√n, when the sample size is 30 or more (otherwise, we'd need to to a t-interval).

Since we're needing a 99% confidence interval, we need to know what the positive z-score associated with this two-tailed area under the normal curve is.  This can be a little tricky if you're using a standard normal table.  What you want is a two-tailed interval that has an area of .99.  What this means is that the remaining 0.01 is divided into 0.005 on each end.  This then means that, to the right of the mean (which is 0), the area is 0.005 less than the total right-half area of 0.5, or 0.495.  The total cumulative area, then, includes this plus the left half of .5, or 0.5 + 0.495 = .0995.

Then, if all we have to go on is a cumulative standard normal table, then we need to find the area closest to 0.995 and find the corresponding z-score.  This z-score is 2.58.

Now that we have the z-score, we can now plug in all the values into the formula.  

e = (2.58 · 0.66)/√102 = 0.1686.

So the 99% confidence interval will be that far above and below the mean (which is 98.8).  So the lower limit is 98.8 - 0.1686 = 98.631, and the upper limit is 98.8 + 0.1686 = 98.967.

The TI-84 method:

This is much easier, if you're allowed to use this technology.  You begin with the STAT button, and then move over to the TESTS menu.  Then select ZInterval.  We have summary stats rather than data in this problem, so we select Stats as the input.  For the standard deviation, we put 0.66, for x-bar 98.8, for n 102, and for C-level 0.99.  Then select Calculate, and it will provide the interval at the top of the screen (98.632, 98.968).  Note that the lower limit is slightly different by this method.  This is because, when doing it by hand, we had to approximate the z-score.  This created a rounding error, albeit  a small one.

4 0
3 years ago
a movie theater can seat 200 people. for one show 85 people are in the theater already. solve the inequality to find how many mo
lisov135 [29]

200-85=115 will be the answer.

8 0
3 years ago
What was the mistake? *
seropon [69]

Answer

Step-by-step explanation:

4 0
3 years ago
Other questions:
  • How many meters are in 18,200 milliliter
    9·1 answer
  • The blue dot.............
    14·2 answers
  • Millie has a box of 1 hundred cubes. She also has a bag of 70 cubes. How many trains of 10 cubes can she make?
    12·2 answers
  • X(3, 4); scale factor = 7
    7·2 answers
  • Help on #6 need to know now
    7·1 answer
  • The price of a scooter was ₹ 54,000 last year. It has increased by 20% this year. What is the price now? *
    10·1 answer
  • Help geometry hw will give brainliest
    10·1 answer
  • Six plus -2 times a number is the same as 26 plus six times the same number.
    14·1 answer
  • At noon, a private plane left Austin, Texas for Los Angeles, California. The distance between Austin and LA is 2100 km. The plan
    6·1 answer
  • What is the surface area of this design? 6in, 4in, 4in, 6in, 10in
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!