Challenge 48 – It’s Getting Dark in Here
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 eighth (48th) challenge: It’s Getting Dark in Here
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 48th challenge is shown below.
A business owner wants to create a website home page, whose background color dynamically changes with the time of the day based upon the following:
Between Midnight and Noon: lightening grey scale between black and white
Between Noon and Midnight: darkening grey scale between white and black
Also, vary the text color so that it contrasts with the background color. For instance, at Midnight, the text color should visible on a black background and at noon the text color should be visible on a white background.
- Write the code necessary to create the appropriate website home page background color and text color, based upon time of day and conforms to the requirements above.
- If the website visitor remains on the homepage, the background color and text color should dynamically update.
- Use Greenwich mean time for the official clock.
- Contestant challenge submittals should be emailed to email@example.com, Subject Line SCS Coding Challenge #48.
- Reponses to Challenge #48 should be received by 5:00 pm CDT, March 31st, 2019.
- 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.