Do My Homework / Homework Help Answers / Computer Science Homework Help / Python Satellite-mapping mountain peaks

Python Satellite-mapping mountain peaks

Need help with this question or any other Computer Science assignment help task?

deadline (21:30 CET) A satellite is flying over the Earth while using radar to measure the elevation of points on its surface. You are programming the satellite's computer, which receives a series of measurements as input, one measurement for each meter that the satellite travels horizontally. Each measurement is an elevation above sea level, written as a decimal number of meters. Whenever your program finds a local maximum in elevation, it should conclude that it has found a mountain peak and should output information about its height and position. The series of measurements may be very long, so you should not assume that it will fit in memory. Write out each peak on a separate line in the form "distance X height Y", where X is the distance in meters from the first measurement and Y is the peak's elevation, written as a rounded value with one digit after the decimal point (this digit should be written even if it is zero). Write out the peaks in the same order in which they are observed. If your program encounters a plateau (a series of identical measurements which are higher than their surroundings), it should write the distance to the beginning of the plateau. All measurements will be non-negative; the first negative number indicates the end of the series. A maximum value at the beginning or end of the series is not considered to be a peak. Important: Do not read the entire input into a list or other data structure, since the input may not fit into memory. Instead, process it as you read it.
There are no answers to this question.
Login to buy an answer or post yours. You can also vote on other others

Get Help With a similar task to - Python Satellite-mapping mountain peaks

Popular Services
Tutlance Experts offer help in a wide range of topics. Here are some of our top services: