Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

1118 542. The The BLEVdLi'UIl-l Illd. L'Elx LB: 2 543.3 542.3 543.1 1 543.4 546.1 545.8 1 544.3 547.1 546.9 6 545.5 545.6 547.6 2 543.9 544.5 547.6 4...

Terrain Navigation is needed in the design of remotely piloted vehicles (RPVs). With terrain information, the RPV can select the best path to take to get to a destination, such on Mars. Knowing the 'peaks' in a grid of elevations can help the RPV determine a good route. A peak is defined as a point on a grid where the four elevation points adjacent on all sides are all lower. make a program that reads in the data and stores it in a 7 by 7 two dimensional array or vector. It then finds the peaks, identifies their locations and counts how many peaks there are. Also identify the highest peak. Have the user input the name of the input file to be used as a string. The input file is called elevations.txt and is on Blackboard under Assignment 6. The peaks are shown in bold to help you make sure that your program is correct. (Note peaks cannot be on edges).

Output should appear as follows (no bold): 

1118 542.543.544.544.543.543.543. TheThe BLEVdLi’UIl-l Illd. L‘Elx LB: 2 543.3 542.3 543.11 543.4 546.1 545.81 544.3 547.1 546.96 545.5 545.6 547.62 543.9 544.5 547.64 544.6 545.7 544.92 544.2 544.8 544.4 grid size is 7 by 7peaks are: 544 546.548.546.546. 544543 Elevation 547.1 at point 3,Elevation 548.9 at point 3,Elevation 545.7 at point 6, .1 543.8 547.9 547.7 546.5 545..8 543..8 543. 353 6 I—‘KDKOLAJU'IN The highest peak is at an elevation 543.4547.3547.7545.4544.2543.3542.6 of 548.9 at 3,5 in the grid.matrix.
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question