Python Satellite-mapping mountain peaks

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.

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

Login to view and/or buy answers.. or post an answer

Related Questions

Similar orders to Python Satellite-mapping mountain peaks
6
Views
0
Answers
Creating a DNS server (written in C)
WANT >=50% due to being swamped (only standard option minimal, don't care about cache or non-blocking). I require periodic updates of code with a description as there is a Git commit tracking. Also require a makefile according to the specifications and a g...
20
Views
0
Answers
Create inheritance project for a restaurant
Projects must include: -at least three different levels of inheritance - at least nine classes total -the highest superclass must have at least two methods -every subclass must contain a unique method that was not present in its super...
16
Views
0
Answers
Python Code for Suggesting Pets
Must have ___init___ ; ___str___ ; for loops ; while loops ; and must define a function which returns something, I wrote down what idea I had in that form so its best to follow it, this is an entry-level computer science project so it should be pretty easy...
23
Views
0
Answers
Quick HW Computer Science on LL(1) and object creation
Due at 12:00pm today. The question details are in the files attached. One question is on the impact of a parser being LL(1) or not. Another is on imagining a mistake in object creation. The answers are probably max 2 lines long....