Find the altitude of a location on the earth, given latitude and longitude coordinates, above mean sea level.
Input___________Latitude and Longitude in decimal degrees.
Output_________ Altitude in meters.
Example:
Everest (27.988056°N 86.925278°E) ----> Height: 8816.663 m (from Google Maps)
Dan, could you provide some more specifics here? Altitude in meters, feet, or furlongs? Against what reference? Number of significant digits you expect? Latitude and longitude are in decimal degrees? An example would also help.
Thank you for suggestions
I like test #7. Although doing it the "right" way, I seem to get decimal precision on the negative values which caused it to fail the test suite.
Fixed tests with negative values and rescored solutions!
the expected level of precision of the responses seems a bit unreasonable (<1 nanometer?), perhaps you could allow +-1% error in the returned altitude responses?
Modified tolerance of the answers.
Program an exclusive OR operation with logical operators
597 Solvers
Convert hex color specification to MATLAB RGB
91 Solvers
Getting the absolute index from a matrix
177 Solvers
Remove entire row and column in the matrix containing the input values
109 Solvers
197 Solvers