Lab 5: Sea level rise

Come up with an algorithm to model what parts of a terrain are flooded when the sea-level rises with an arbitrary amount x.

The inputs to the algorithm are a grid DEM (arcascii order), and a sea-level rise x. For example, calling your code with :

./slr brunswick.asc 3

will create another grid, say flooded.asc, of the same size and geographical coordinates as brunswick.asc, in which every point will be either 1 or 0 corresponding to whether it is flooded or not flooded, respectively, when the sea level rises by 3 feet.