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

Stats:

CreatedApr 4, 2020
Warriors Trained142
Total Skips47
Total Code Submissions375
Total Times Completed34
Python Completions12
PHP Completions7
Java Completions9
JavaScript Completions13
Total Stars4
% of votes with a positive feedback rating60% of 24
Total "Very Satisfied" Votes10
Total "Somewhat Satisfied" Votes9
Total "Not Satisfied" Votes5
Total Rank Assessments20
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • cyper85 Avatar
Ad