You are given a two-dimensional array of values that give the height of a terrain
Chapter 6, Problem P6.33(choose chapter or problem)
You are given a two-dimensional array of values that give the height of a terrain atdifferent points in a square. Write a functionvoid flood_map(double heights[10][10], double water_level)that prints out a flood map, showing which of the points in the terrain would beflooded if the water level was the given value. In the flood map, print a * for eachflooded 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 howthe terrain gets flooded when the water level increases in ten steps from the lowestpoint in the terrain to the highest.
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer