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

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back