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
What’s the correct answer for this?
Arlecino [84]
I do believe it is the second one
8 0
3 years ago
Jenna has 131 dog biscuits. She wants to give them as gifts to each of her 4 poodles. How many biscuits does each poodles get? (
EleoNora [17]

Answer:

32

Step-by-step explanation:

you just have to divide 131/4 to get 32.75 but  they all have to be equal

7 0
4 years ago
5.4 divided by 205.2
evablogger [386]

Answer:

The answer is 0.02

Step-by-step explanation:

7 0
3 years ago
How do you write 4.41*<br><img src="https://tex.z-dn.net/?f=%20%7B10%7D%5E%7B1%7D%20" id="TexFormula1" title=" {10}^{1} " alt="
Angelina_Jolie [31]
If you’re trying to convert it to standard notation then it’s 44.1 as your answer.
7 0
3 years ago
Read 2 more answers
Is this a function or no??
Mariana [72]

Answer:

No, it is not.

Explanation:

One <em>x </em>value (-3) has more than one corresponding <em>y </em>value (1 and 0). In a proper function, each <em>x </em>value has one and only one corresponding <em>y </em>value.

5 0
3 years ago
Read 2 more answers
Other questions:
  • If you are working out the mean, with a set of 16 numbers but in those numbers there are doubles do you still include them in th
    15·1 answer
  • A consumer charges a $46.92 purchase on a credit card. The card has a daily interest rate of 0.039%. If the consumer pays off th
    13·2 answers
  • How is 0.009 and 0.9 related
    10·1 answer
  • Mr.kiniston jogged how many miles
    11·2 answers
  • The following expressions are factorizations of 60. Which is the prime factorization?​
    9·1 answer
  • in a multiple choice test there are 10 questions. each question has 5 choices how many ways can they complete the test no two co
    5·1 answer
  • Find x on the lines plz and thanks​
    11·2 answers
  • Please help determine the range
    15·1 answer
  • Find the measure of 2 and 4 if 1=122° and 3 = 58°
    13·1 answer
  • If Alice walks 4 miles in 50 minutes, then Alice will walk how far in 80 minutes if she walks at the same speed the whole time?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!