Question: C++ 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

C++ 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 _. Your function should be named floodMap Your function should take three parameters. A two-dimensional array of doubles with 4 columns. The number of rows in the array. A double indicating the current water level. Your function should print a flood map as described.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!