Give solution in C ++ Language. Write logic also which is applicable in this question. First read the instruction and hints then solve the question. Hints and Instructions : First read the number of rows and numbers of columns for the grid of information. Store them in Array (2D) These values are then followed by the elevation values, in row order. The maximum size of the grid is 5 rows by 5 columns. Then extend it to 10x10. Forget the file handling part. Just randomly fill in data in 2d array. And then try to find maximum of the array while keeping in mind the conditions mentioned. Don't store date or file in grid.text.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Give solution in C ++ Language. Write logic also which is applicable in this question. First read the instruction and hints then solve the question. Hints and Instructions : First read the number of rows and numbers of columns for the grid of information. Store them in Array (2D) These values are then followed by the elevation values, in row order. The maximum size of the grid is 5 rows by 5 columns. Then extend it to 10x10. Forget the file handling part. Just randomly fill in data in 2d array. And then try to find maximum of the array while keeping in mind the conditions mentioned. Don't store date or file in grid.text.
Narrative:
Terrain navigation is a key component in the design of unmanned aerial vehicles (UAVS). Vehicles
such as a robot or a car, can travel on land; and vehicles such as a drone or a plane, can fly
above the land. A UAV system contains an onboard computer that has stored the terrain
information for the area in which it is to be operated. Because it knows where it is at all times
(often using a global positioning system [GPS] receiver), the vehicle can then select the best path
to get to a designated spot. If the destination changes, the vehicle can refer to its internal maps
and recompute the new path. The computer software that guides these vehicles must be tested
over a variety of land formations and topologies. Elevation information for large grids of land is
available in computer databases. One way of measuring the "difficulty" of a land grid with respect
to terrain navigation is to determine the number of peaks in the grid, where a peak is a point that
has lower elevations all around it. For this problem, we want to determine whether the value in
grid position (m][n] is a peak. Assume that the values in the four positions shown are adjacent to
grid position [m][n]:
grid[e-1][n]
grid[m] [n-1] grid[m] [n] grid[m][n+1]
grid[s+1][m]
Response Required:
Write a program that reads elevation data from the user, and then prints the number of peaks and
their locations.
Transcribed Image Text:Narrative: Terrain navigation is a key component in the design of unmanned aerial vehicles (UAVS). Vehicles such as a robot or a car, can travel on land; and vehicles such as a drone or a plane, can fly above the land. A UAV system contains an onboard computer that has stored the terrain information for the area in which it is to be operated. Because it knows where it is at all times (often using a global positioning system [GPS] receiver), the vehicle can then select the best path to get to a designated spot. If the destination changes, the vehicle can refer to its internal maps and recompute the new path. The computer software that guides these vehicles must be tested over a variety of land formations and topologies. Elevation information for large grids of land is available in computer databases. One way of measuring the "difficulty" of a land grid with respect to terrain navigation is to determine the number of peaks in the grid, where a peak is a point that has lower elevations all around it. For this problem, we want to determine whether the value in grid position (m][n] is a peak. Assume that the values in the four positions shown are adjacent to grid position [m][n]: grid[e-1][n] grid[m] [n-1] grid[m] [n] grid[m][n+1] grid[s+1][m] Response Required: Write a program that reads elevation data from the user, and then prints the number of peaks and their locations.
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY