Question: Question 3 Write a function floodMap(...) which takes three arguments, a two dimensional array of doubles indicating the height of the terrain at a particular
Question 3 Write a function floodMap(...) which takes three arguments, a two dimensional array of doubles indicating the height of the terrain at a particular point in space (assume that there are 4 columns), an int indicating the number of rows in the map, and a double indicating the current water level. The function should print out a "map" of which points in the array are below the water level. In particular, each position at or below the water level will be represented with a "*" and each position above the water level will be represented with a "_". An example map might look like this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
