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]
4 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]4 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
How to rewrite equation 5x+7y-35=0 in slope intercept form?<br>​
tino4ka555 [31]
Y equals 5 over 7x minus 5
3 0
3 years ago
Thr four angles of a quadrilateral L are in the ratio 5:2:3:8find the angle
Anuta_ua [19.1K]
Ratio = 5:2:3:8
Sum of all internal angles = 360°
5x + 2x + 3x + 8x = 360°
18x = 360°
x = 20°
Therefore,
5x = 100°
2x = 40°
3x = 60°
8x = 160°
5:2:3:8 :: 100:40:60:160.
5 0
3 years ago
Read 2 more answers
What is the slope and y-intercept for the ghraph of y+9x=-6
noname [10]
Y intercept:

Y=-6-9(0)
=-6

(0,-6)

I’m assuming the slope is the gradient if that’s the case then it would be -9 since
Y=mx+c
m is the gradient and in this case it’s -9
7 0
3 years ago
Read 2 more answers
Find x round to the nearest tenth. Hint: use the quadratic formula
Fofino [41]
What are the options
5 0
4 years ago
Is my answer right? I think it’s A, but I don’t want to get it wrong.
never [62]
The answer is 16 if you solve it, because the square root of 64 is 8 and 2 * 8 = 16
5 0
3 years ago
Other questions:
  • how much does britney need to buy 2 pearl bracelets and 2 emerald rings emerald ring price 6,395.00 Pearl bracelets prince 5,314
    6·2 answers
  • Shaquille, Lyle, and Amanda collect stamps. Shaquille has one-half the number of stamps that Lyle has. Amanda has two-thirds as
    9·1 answer
  • your ultra-modern store is one-story round. your square footage is 31,416. What is the diameter of you store ? Area of a circle
    14·1 answer
  • Dave took an exam with 40 questions. He answered 26 correctly. What was his grade for the exam? Write the grade as a percent .
    7·2 answers
  • How do you write this in number form nineteen thousand, three hundred twenty-two
    5·2 answers
  • 2/3 + 3/4 write the answer in the simplest Form
    10·2 answers
  • You are on the prom decorationg committee and are in charge
    12·1 answer
  • A copy machine makes 24 copies per minute. How long does it take to make 84 coples?
    6·1 answer
  • What's the missing number?????
    10·1 answer
  • Does this graph represent a function? Why or why not?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!