Write Main Program Randomly Fill 2 Dimensional Array Integer Values Range 0 50 Use Randint Q37047668

Write a main program that will randomly fill a 2 dimensionalarray with integer values in the range of 0 to 50. Use the Rand_Intfunction and constants to do this. These values represent theheight of a terrain. Write a function that will determine what partof the terrain will flood.

A. Create a global constant called MAX and assign it the value of10.

B. Prompt the user in main, at what height do they consider it toflood.

C. The function prototype is: void Map_Flood(int h[MAX][MAX], intlevel);

D. The function Map_Flood will output a terrain map that has an *to represent flooding and a space for no

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.