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
Map: Ayshadrew a circle on a map with a radius of 14 inches. She plans to visit the cities within the circle. Whatis the area of
Slav-nsk [51]

Answer:

615.8in^3

Step-by-step explanation:

Given data

Radius= 14in

The expression for the area of circle is given as

A= πr^2

Area= 3.142*14^2

Area= 3.142*196

Area= 615.832in^3

Hence the area is 615.8in^3

8 0
3 years ago
Select following series as artithmetic, geometric or neither. 1+2 +3+4+...+10
katrin [286]
Ok so The answer is 20
7 0
3 years ago
Find the value of a and b<br><br> a^2 + b^2 = 400
Oliga [24]

Answer:

Step-by-step explanation:

a^2+b^2=400

a^2=400-b^2

a=sqrt(400-b^2) & -sqrt(400-b^2)

-----------------------------------------------

b^2=400-a^2

b=sqrt(400-a^2) & -sqrt(400-a^2)

7 0
3 years ago
Read 2 more answers
Vertical angles must:Check all that apply. A.be complementary. B.be acute. C.have the same vertex. D.be congruent.
KIM [24]
<span>Vertical angles must be C and D

A.be complementary. They are not always complementary, to be complementary means having a sum of 90 deg
B.be acute. - Vertical angles can be NOT acute depending on how they are positioned and intersected with the lines.

Answer
C.have the same vertex.
D.be congruent.</span>
3 0
3 years ago
Ryan made a $3000 down payment on a car. the total cost of the car was $7500. He made 36 equal monthly payments to pay the car i
yawa3891 [41]
The car costs $7500
7500-3000=4500 to be paid in monthly payments
4500/36=125
Ryan paid 125 per month
7 0
3 years ago
Read 2 more answers
Other questions:
  • Suppose the weights of seventh graders at a certain school vary according to a Normal distribution, with a mean of 100 pounds an
    8·1 answer
  • Help with question 3 plz
    13·1 answer
  • Help me plz with this
    10·1 answer
  • PQ has endpoints at PH(7, -11) and Q(-5,-8). Find the slope of PQ
    6·1 answer
  • Which of the point-slope equations below are correct for the line that passes through the points (6,6) and (3,1)?
    13·1 answer
  • Which line appears to have the same slope as the equation x-y=4 and has a y-intercept that is 2 units above the y-intercept of t
    11·1 answer
  • A baseball is hit with a bat etc .....
    12·1 answer
  • Simplify it for me please Simplify: 1.50
    13·1 answer
  • Line ZW is parallel to line XY and line CD intersects both lines.
    8·1 answer
  • Please help, not good at match will mark smart
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!