### (Solved) : Write Program Simulate Random Walk N Steps Run Two Types Simulations One Uses Cubic Lattic Q35573959

Use C++ to

Write a program that will simulate a random walk of N steps. Run two types of simulations a)One that uses a cubic lattice b) an off-lattice simulation 1. a. Generate your random walk in 3-D. Assume a step length of1 Calculate the following (for both lattice and off-lattice walks): . Average end to end distance Ree>12 . Average Radius of gyration <Rg212 . P(Ree) vs Ree- the probability distribution of the Ree Plot <Rg12 vs N and Ree212vs N for values of N 10,20,30,60,120 and confirm the equations that we derived in class (for both lattice and off-lattice). Plot P(Ree) vs Ree for any two values of N and compare your lattice and off-lattice results Average your results over a minimum of N2 walks, where N is the length of the walk. The more the number of walks you average over, the more accurate will be the result. EXTRA CREDIT 2. Now run the on-lattice Random walk by adding a bias in the tx direction. Use values of the bias p-0.1, 0.2 and 0.3. Calculate all the same quantities as for Problem (1) and compare the values with and without the bias Show transcribed image text Write a program that will simulate a random walk of N steps. Run two types of simulations a)One that uses a cubic lattice b) an off-lattice simulation 1. a. Generate your random walk in 3-D. Assume a step length of1 Calculate the following (for both lattice and off-lattice walks): . Average end to end distance Ree>12 . Average Radius of gyration