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 many ounces are in a 10 1/2 pound
Yuki888 [10]
1 pound equals 16 ounces
10 times 16 equals 160 ounces plus 1/2 a pound which is 8
168 ounces
7 0
4 years ago
Find the area of the trapezoid below.
Pani-rosa [81]

Answer: 54 cm²

Step-by-step explanation: In this problem, we're asked to find the area of the trapezoid shown. A trapezoid is a quadrilateral with one pair of parallel sides.

The formula for the area of a trapezoid is shown below.

Area =\frac{1}{2} (^{b} 1 + ^{b}2)h

The <em>b's</em> represent the bases which are the parallel sides and <em>h</em> is the height.

So in the trapezoid shown, the bases are 6 cm and 12 cm and the height is 6 cm. Plugging this information into the formula, we have \frac{1}{2} (6 cm +12cm)(6 cm).

Next, the order of operations tell us that we must simplify inside the parentheses first. 6 cm + 12 cm is 18 cm and we have \frac{1}{2}(18 cm)(6 cm).

\frac{1}{2} (18 cm) is 9 cm and we have 9 cm · 6 cm of 54 cm²

So the area of the trapezoid shown is 54 cm².

7 0
3 years ago
The function f(x) = (10)–x is reflected across the x-axis to create the function g(x). Which ordered pair is on g(x)? (–2, 75) (
IRINA_888 [86]
Neither point is on either function.
f(x) reflected over the x-axis is
y=-10 + x
7 0
3 years ago
Square A has a side length of (2x - 7) and Square B has a side length (-4x + 18). How much bigger is the perimeter of Square B t
stich3 [128]

Answer: 100 - 24x

Step-by-step explanation:

The formula for calculating the perimeter of a square is given by :

P = 4l , where l is the length of the side.

Perimeter of square A will be

P = 4 ( 2x - 7 )

P = 8x - 28

Perimeter of square B will be ;

P = 4 ( -4x + 18 )

P = - 16x + 72

Perimeter of square B - Perimeter of square A implies

-16x + 72 - ( 8x - 28 )

-16x + 72 - 8x + 28

collecting the like terms

-16x - 8x + 72 + 28

-24x + 100

⇒ 100 - 24x

3 0
3 years ago
Please help my solve this problem. :(
solniwko [45]
The answer would be 90
8 0
4 years ago
Other questions:
  • Please answer it now in two minutes
    5·1 answer
  • The blue M&amp;M was introduced in 1995. Before then, the color mix in a bag of plain M&amp;Ms was (30% Brown, 20% Yellow, 20% R
    7·1 answer
  • The length of a rectangle is twice the width. The area is 72 yd^2. Find the length and the width.
    8·1 answer
  • PLEASE ANSWER I NEED HELP
    10·1 answer
  • What is the distributive property for variables????
    5·1 answer
  • What is k?
    5·1 answer
  • Helppppo plss<br> zoom in on picture if u need but i need answer soon
    5·2 answers
  • ( I’ll give you brainliest!!!) Find the length of the third side. If necessary, write in simplest radical form.
    11·1 answer
  • Answer this word question
    11·2 answers
  • I need help on this
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!