Question: Please create the following C++ program by using visual studio Y ou are a civil engineer tasked with finding a suitable location to place a

Please create the following C++ program by using visual studio

You are a civil engineer tasked with finding a suitable location to place a new dam in the Sierra Nevada to create additional water resources for the state of California. You will be receiving a series of data tables that Bureau of land management has designed as ok locations to build a dam. Each map represents a dicrete area of CA and your job will be to find the best location.You don't know how many data tables you will receive, so decide to write a program that can take the data and do the analysis for you automatically.

The good new is that you know that data format. Each data point in the data table represents the highest elevation point of grid location on a map. The grid locations are sequential and can be thought of as 10*10 map. Your job is to find the:

1) The grid number with the highest land elevation

2) The grid number with the lowest land elevation

3) Each grid number where the elevation is lower than the four adjacent grid locations.

NOTE: You must take each of the interior grid cells and calculate the difference between its elevation and four adjancent cells. The four cells are directly:

1) Above

2) Right

3) Below

4) Left

4)The grid number where with the greatest difference between the four adjacent grid locations.

- A simplified map is attached.

Please create the following C++ program by using visual studio You are

Your boss has provided a test file with fictitious data, but will help ensure your program works correctly. It is named "LandElevationTest.txt". The file contains 100 numbers. the first 10 numbers will fill the first grid row, the second ten numbers the second grid row etc.

Remember, you must:

1) for the entire map, output the high and low elevation values with grid locations.

2) provide each grid location and elevation value that is lower than the four adjecent cells.

3) The grid location, elevation value and total difference in elevation with the greatest difference between the four adjacent cells.

-You should error check to make sure that the file is located in the local directory where the source code is located.

uMN 2. 5 2S 65 05 510 13 12 0 4 4087 1 8 42 5 39 1O 1352 125 641 804 812 uMN 2. 5 2S 65 05 510 13 12 0 4 4087 1 8 42 5 39 1O 1352 125 641 804 812

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!