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
A particular frozen yogurt has 75 calories in 2 ounces how many calories are in 8 ounces of the yogurt
Sveta_85 [38]
Hello there! If you know basic division, then you know that 8/2 is 4. With 75 calories being in 2 ounces of yogurt, all we have to do is multiply by 4 to get the amount of calories in 8 ounces of yogurt, because 2 * 4 is 8. Plus for this scenario, whatever we do to one part, we must do to the other. Let's solve. 75 * 4 is 300. There. There are 300 calories in 8 ounces of yogurt.
7 0
3 years ago
Wahaj buys a pizza for rs 800.A week later,the same piza costs rs 900.When wahaj asks the manger for the reason ,he explain that
lions [1.4K]

Answer:

12.5%

Step-by-step explanation:

The price increased from 800 to 900. So what is the PERCENTAGE INCREASE??

The increase is 900 - 800 = 100

To find this in terms of original, we need to divide 100 by 800 and multiply by 100 to get the "percentage". Let's do it:

\frac{100}{800}*100=12.5

So the increase is 12.5% and thus the general sales tax is 12.5%

6 0
3 years ago
The difference of two numbers is 15.The larger number is 1 more than 3 times the smaller number. Find the two numbers
lisabon 2012 [21]

Answer:

Step-by-step explanation:

2) let the two numbers be x and y

x-y =15

(taking x to be big)

x = 3 (y)+1

i.e. x-3y =1

Subtracting we get

2y =14 or y =7

x =15+7 =22

Larger number is 22 and smaller number is 7

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

Alysha is 2 years younger than Bryce/

Let Alysha be x years old then Bryce would be x+2

Sum of their ages

=x+x+2 =28

2x+2 =28

2x=26

x=13

Hence Alysha is 13 years old and Bryce 14 years old.

5 0
3 years ago
What is the value of 0.6 + 0.3? Write your answer as a fraction in lowest terms
Allisa [31]
9/10 i the answer i believe
3 0
3 years ago
Help!!!!! Not the top one by the way..!
OverLord2011 [107]

Answer:

\large\boxed{x=-3\ and\ y=-11\to(-3,\ -11)}

Step-by-step explanation:

\underline{+\left\{\begin{array}{ccc}-6x+y=7\\3x-y=2\end{array}\right}\qquad\text{add both sides of the equations}\\\\.\qquad-3x=9\qquad\text{divide both sides by (-3)}\\.\qquad\boxed{x=-3}\\\\\text{Put the value of x to the first equation:}\\\\-6(-3)+y=7\\18+y=7\qquad\text{subtract 18 from both sides}\\\boxed{y=-11}

3 0
3 years ago
Other questions:
  • Ellen boughy a tray of plants for $8.15 there where 16 plants in the tray if i bought only one what would it cost
    5·2 answers
  • Using the order of operations, evaluate... 3-(3+3x3)-4^2 The 4^2 is 4 squared
    7·2 answers
  • Much of Ann’s investments are in Cilla Shipping. Ten years ago, Ann bought seven bonds issued by Cilla Shipping, each with a par
    8·2 answers
  • How many ounces are equivalent to 25 pounds?
    13·2 answers
  • Estimate then find the quotient 4.185 divides by 0.93
    6·2 answers
  • Determine the location and values of the absolute maximum and absolute minimum for given function : f(x)=(‐x+2)4,where 0<×&lt
    12·1 answer
  • PLEASSE HEP MEEEEEEEE
    12·1 answer
  • Find a​ point-slope form for the line with slope 1/5 ( 1 over 5) and passing through the point ​(−8​,−9​)
    9·1 answer
  • Hailey is 2 years younger than her sister. If Hailey is h years old, which equation represents the age of her sister, s?
    12·2 answers
  • I need help with this question its due soon
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!