Question: Please help with the following problem using Visual Studio. PROBLEM: You are given a two-dimensional array of values that give the height of a terrain

Please help with the following problem using Visual Studio.

PROBLEM:

You are given a two-dimensional array of values that give the height of a terrain at different points in a square. Write a function void flood_map(double heights[10][10], double water_level) that prints out a flood map, showing which of the points in the terrain would be flooded if the water level was the given value. In the flood map, print a * for each flooded point and a space for each point that is not flooded. Here is a sample map:

* * * * * *

* * * * * * * *

* * * * * *

* * * * * *

* * * * * * * *

* * * * * * * * *

* * * * *

* * * * * *

* *

* * *

Then write a program that reads one hundred terrain height values and shows how the terrain gets flooded when the water level increases in ten steps from the lowest point in the terrain to the highest.

ADDITIONAL DIRECTIONS:You need to design your own test procedures and test steps.

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!