Retired
Sexagesimal degree (retired)
12 of 34cyper85
Description:
There are different geocoordinate systems. One of the best known is WGS 84, which is used for GPS coordinates, for example. Here the world is divided into longitude and latitude. The representation of the coordinates can be in decimal degrees and in sexagesimal degrees. The task is: convert the coordinates from decimal degree to sexagesimal degree. If an invalid coordinate is passed, raise/throw an exception.
Symbols
- Degrees: °
- Minutes: ′
- Seconds: ″
- Orientations: N, S, W, E
Examples
- La Tour Eiffel
lat=48.858222, lon=2.2945 -> 48° 51′ 30″ N, 2° 17′ 40″ E - Sydney Opera House
lat=-33.856111, lon=151.215278 -> 33° 51′ 22″ S, 151° 12′ 55″ E - Statue of Liberty
lat=40.68923, lon=-74.04447 -> 40° 41′ 21″ N, 74° 2′ 40″ W
Fundamentals
Similar Kata:
Stats:
Created | Apr 4, 2020 |
Warriors Trained | 142 |
Total Skips | 47 |
Total Code Submissions | 375 |
Total Times Completed | 34 |
Python Completions | 12 |
PHP Completions | 7 |
Java Completions | 9 |
JavaScript Completions | 13 |
Total Stars | 4 |
% of votes with a positive feedback rating | 60% of 24 |
Total "Very Satisfied" Votes | 10 |
Total "Somewhat Satisfied" Votes | 9 |
Total "Not Satisfied" Votes | 5 |
Total Rank Assessments | 20 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |