Many times the mole will drown use a counter to count the


Write a program to make the mole take a walk through the island. The mole is allowed to travel only one square at a time, either horizontally or vertically. A random number between 1 and 4 should be used to decide which direction the mole should take. Example: 1 may equal North, 2 South, etc... The mole drowns when it hits the water but escapes when it crosses the bridge. What are the moles chances of getting off the island safely? Restart the mole 1000 times and count the number of times it escapes. Display the number of times it escapes and the percentage of successful escapes. Display the lowest number of moves it took for the mole to escape and how many times did the mole escape in that fewest number of moves? Many times the mole will drown. Use a counter to count the number of times it finds the bridges. Could anyone help me with this I am having trouble figuring out the loop to make the mole travel through the island.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Many times the mole will drown use a counter to count the
Reference No:- TGS0645055

Expected delivery within 24 Hours