Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Would you please help me with this c program .. please it is C program, you see c codes not c++ ENGR 200 SPRING, 2017

Would you please help me with this c program .. please it is C program, you see c codes not c++ image text in transcribed
image text in transcribed
ENGR 200 SPRING, 2017 A6: CALCULATING PEAKELEVATIONS (using input/output files, if structures, one-dimensional character arrays, one-dimensional and two-dimensional numeric arrays) DUE: March 20, 2017 at 11:59 PM, CDT (Mon Wed section March 21, 2017 at 11:59 PM, CDT Tues Thur sections and DEDP) POINTS: 65 INTRODUCTION: You are a Mechanical Engineer working for a company that designs autonomous air and ground vehicles. To follow and/or avoid terrain, the vehicles need to have the capability to detect elevation differences. The systems that guide these vehicles need to be tested over a variety of terrain anomalies. You have determined that elevation information for large grids of the Earth's surface are often available in large computer databases. And one way to detect terrain anomalies of a grid sector is to determine the peak elevations in the grid. An input file called terrain contains elevation data for a designated land grid region. The first record line contains the grid size, the second record line contains the grid name, the third record line contains the grid row letters, the fourth record line contains the grid column numbers, and the remaining record lines are the grid elevations. ASSIGNMENT: Write a C program that will do the following: 1) Read the grid size; 2) Using a one-dimensional character array read the grid name; 3) Using a one-dimensional character array read the grid row Using dimensional numeric array read the grid column numbers; 5) Using a two-dimensional numeric array read the elevation data. Your program will: 1) Compute the average elevation; 2)Determine the minimum and maximum elevations; the grid row and grid column of the minimum elevation; 4) Determine the grid row and grid column of the maximum elevation: 5) Determine the number of peak elevations. Note: A peak elevation occurs when the four surrounding elevations are lower Also, the elevations that are on the edges of the grid cannot be considered as elevations since they are not surround by elevations on a four sides. Your program will print to the computer screen and to an output file called grid report. OUTPUT FORMAT: AREA-49-LAND-GRID-SURVEY Elevations in feet 10 site Report 1 Average elevation is xxx x feet this grid is xx Number of peaks Mininun elevation is xxx x feet at grid Maximun elevation is xxx x feet at grid

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

ISBN: 1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

8. How would you explain your decisions to the city council?

Answered: 1 week ago