In the random walk a peron is placed at the center of a 7 meter long bridge. Each step,the person moves 1 metre either forward or backward at random.
A) Write a program to determine how many steps the person will walk before taking a step off the bridge.Have the program average 50 trials and report the average and greatest number of steps.
Example
http://img113.imageshack.us/img113/1070/...
2. Create a menu with four options plus an exit option.Option one fills and array with 25 random numbers from 0 to 100.Option two finds a requested number in the list and displays the numberand the position. If the number is not in the list display a message.Option three finds the largest number in the list displaying the number and the position.Option four sums all the numbers displaying the total.
C++ "Random Walk" Assignment (Best Answer)?
Did you really create this Y!A account to have other people o your homework for you? Three measly little assignments, and you couldn't do ANY of them?
Geez, take an incomplete...
Reply:A program designed to walk a person off a bridge... Maybe your professor is trying to tell you something
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment