Question: Your question on this assignment is to take that method, and to determine the AVERAGE number of steps it takes. To do this you are
Your question on this assignment is to take that method, and to determine the AVERAGE number of steps it takes. To do this you are going to run your method from the first program 10000 times, and find the total number of steps needed and then divide it to find the average. So for example If I ask the computer what is the average number of steps for a size 20 walk, it might return back that the average number of steps is 397.33
So you need to ask the user what size walk they want to know about, then run the method with that number 10,000 (ten thousand) times, and find the average number of steps. Then print out that number. A sample of what your output should look like: ----jGRASP exec: java ProgramNumber12 What size walk do you want to test? 100 For a walk of size 100, after 10,000 tries, on average it took 10029.12 steps to get there. ----jGRASP: operation complete.
Java Cs141
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
