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
N is a rational number.m is an irrational number.n2 cannot be an irrational number? why or why not
Korolek [52]

If n is rational, it means that

n\in\mathbb{Q}\Rightarrow n=\frac{p}{q},\quad p\in\mathbb{Z},\quad q\in\mathbb{Z}^*

Therefore when we do n² we can write it as

n^2=\frac{p^2}{q^2},\quad p\in\mathbb{Z},\quad q\in\mathbb{Z}^*

Remember that the product of two integer numbers is also an integer, therefore we can guarantee that

p^2\in\mathbb{Z}\text{ and }q^2\in\mathbb{Z}^*

Then we can confirm that n² is the quotient of two integers and the denominator is not zero, therefore, n² is always rational, it cannot be an irrational number

8 0
1 year ago
• Write the equation of the line that passes through the points (-7,0) and(-3,-9). Put your answer in fully reduced point-slope
coldgirl [10]

We want to calculate the line that passes through the points (-7,0) and (-3,-9). Recall that the equation of a line is

y=mx+b

where m is the slope and b is the y intercept. We can calculate first the slope and then find the value of b. To do so, recall that given points (a,b) and (c,d) the slope of the line that passes through them is given by the formula

m=\frac{(d\text{ -b)}}{(c\text{ -a)}}=\frac{b\text{ -d}}{a\text{ -c}}

so by taking a=-7, b=0, c=-3 and d=-9 we get

m=\frac{0\text{ - (-9)}}{\text{ -7 -( -3)}}=\frac{9}{\text{ -4}}=\text{ -}\frac{9}{4}

so our equation becomes

y=\text{ -}\frac{9}{4}x+b

so know we want this line to pass through the point (-7,0), so whenever x= -7 then y=0 so we have the equation

0=\text{ -}\frac{9}{4}(\text{ -7)+b}

or equivalently

0=\frac{63}{4}+b

so if we subtract 63/4 on both sides, we get

b=\text{ -}\frac{63}{4}

so our equation would be

y=\text{ -}\frac{9}{4}x\text{ -}\frac{63}{4}

3 0
1 year ago
What is the radius of the base of the cylinder below?
Dafna1 [17]

Answer:

where is the cylinder

Step-by-step explanation:

7 0
4 years ago
Find the angle θ between ???? and ???? if ????⋅????=12‖????‖⋅‖????‖. (Use symbolic notation and fractions where needed. Give you
BlackZzzverrR [31]

Answer: hello your question is poorly written below is the complete question

Find the angle between and if ⋅=3√2‖‖⋅‖‖.

(Use symbolic notation and fractions where needed. Give your answer in terms of . )

answer :

∅ = π / 6

Step-by-step explanation:

V .W = \frac{\sqrt{3} }{2}  || V ||. ||W||

Hence

∅ = cos^-1 ( \frac{\frac{\sqrt{3} }{2}  || V ||. ||W||}{||V||.||W||}

∅ = cos^-1 ( \frac{\sqrt{3} }{2} )

∴ ∅ = π / 6

4 0
3 years ago
The Census Bureau reports that 82% of Americans over the age of 25 are high school graduates. A survey of randomly selected resi
mihalych1998 [28]

Answer:

Mean = 910.2

Standard deviation = 12.8

Step-by-step explanation:

82% over the age of 25 are high school graduates.

A survey randomly selected students of certain country included 1110 who were over the age of 25 and 871 of them were high school.

n = 1110

p = 82% = 0.82

q = 1 - 0. 82

q = 0.18

Mean = np

= 1110*0.82

= 910.2

Standard deviation = √npq

= √ 1110*0.82*0.18

=√163.836

= 12.8

6 0
3 years ago
Other questions:
  • Alana biked 45 miles in 3 hours how many miles did she bike in 1 hour
    14·1 answer
  • Can you help me on number 3
    8·1 answer
  • For 0 < or = n < or =10, find a formula for Pn, the payment in year n on a loan of 105000 dollars. Interest is 7 percent p
    9·1 answer
  • What is a irrational number between 9.5 and 9.7
    12·2 answers
  • HELP!!!
    12·1 answer
  • My question has been up too long lol
    5·1 answer
  • Determine if the following system of equations has no solutions ......................
    12·1 answer
  • What is -6p - 3 = 9 plz help quick​
    10·1 answer
  • If 2000 is placed into a bank account that pays 3% compound interest per year how much will be in the account after 2 years
    11·1 answer
  • { x + y = 1 2x - 3y = -18
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!