Write a program to take in the size of the array and an integer N that simulates a “random” walk. using a coin flip for N steps. The initial position is the middle of the array and if the coin flip is heads (0) move 1 step to the right, tails (1) move one cell to the left. Each time they move into a cell the cell is incremented. After flipping the coin a given number of times then print out the total number of times the cell was occupied. Print out”*” for each visit so that they can see the random walk graphically.
^This is the task I have been assigned, I am really not sure where to start, neither I am I sure how to do the coin flip. Or how to flip a coin or increment the cell, I am not asking for you to write the program. Just to give me an idea of how to write the program, using HSA console, or give me other pointer links in the forum. Thanks in advance.