Challenge 41 – Digital Time
To perform effectively as a software application developer, one must be acquainted with various facets of application development. To test the skills of application developers, Superior Consulting Services (SCS) offers a series of technical coding challenges designed to challenge and educate application developers. This blog addresses problem solving and algorithm development, and presents SCS’ forty-first (41st) challenge: Digital Time.
Let’s get ready to rumble
Each SCS challenge will require the user to solve a problem. All questions are designed to be solvable by mid-level application developers in one hour or less. The 41st challenge is shown below.
24 Hour Clock Standard
The 24-hour clock is the convention of time keeping in which the day runs from midnight to midnight and is divided into 24 hours, indicated by the hours passed since midnight, from 0 to 23. This system is the most commonly used time notation in the world today.
The society for comical thinkers proposed the use of a Digital Clock. A digital clock divides a day into 10 different time units (digHours). A digHour is further divided into 10 different time units digSecs, which are further divided into 4 different time units, diggyDos.
Challenge #41, converting time from a 24 hour clock, to a digital clock using the following conversions.
10 digHours in a day.
10 digSecs in a digHour
4 diggyDos in a digSec
Format digital time as follows digHours:digSecs^diggyDos.
Note the accuracy of a diggyDo should be only computed to the nearest 10th of a unit.
The following is prototype function to compute digital time from a 24 hour time. Please fill in the missing information and use any data type you like in order to get the MOST ACCURATE result.
- Given a time in 24 hour units into Digital time per the above conversions.
- Any programming language can be used.
- Winner will be judged on accuracy and completeness of the solution.
- Contestant challenge submittals should be emailed to email@example.com, Subject Line SCS Coding Challenge #41.
- Reponses to Challenge #41 should be received by 5:00 pm CDT, August 31st, 2018.
- In the event of a tie between two or more winning solutions, the first solution received will receive the prize; however, all submitters with good solutions will be recognized.
- Employees of SCS are not eligible to participate in the coding challenge.
The best solution submitted will receive an Amazon.com gift certificate worth $25.00 (U.S. dollars) and have the winning solution, along with the winner’s name, on the SCS website: www.teamscs.com.