Skip to content

sharpstream/junior-developer-interview-2019

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Junior Developer Interview Task 2019

Setup

The task is designed to need very little setup. Provided you have a version of PHP on your machine and git installed, you should be able to complete the task. We would recommend getting hold of a decent IDE, for this task we'd recommend Sublime Text as it's free and easy to get started with.

If you have any issues, please let us know as soon as possible.

To begin, clone this repository and start.

Submission

Dependent on your knowledge of PHP syntax and general experience, this task should take a couple of hours to complete. To submit the task, zip up the cloned repository and send it to us by email.

Task Description

Describe Your Approach

In the task-approach.md file, describe how you would retrieve the following pieces of information from the stations.json file.

  • Get the total number of stations
  • Get the total number of station groups
  • Get the total people currently listening across all stations
  • Get the station with the longest average listening duration
  • Get the station with the highest peak listeners
  • Get the amount of stations with 500 current listeners or more
  • Get the amount of stations with 200 current listeners or more
  • Get the amount of stations with 300 current listeners or less
  • Get the country with the highest current listeners
  • Get the country with the highest peak listeners
  • Get the Amount of stations in Great Britain with 500 current listeners or more

Find the answers

Now using php in the index.php file load the data from stations.json and calculate the answers to each of the above.

By running php index.php in the command line there should be an output that looks like this :

Total Number of Stations : xxx
Total Number of Station Groups : xxx
Total current listeners across all stations : xxx
The station with the longest listener duration is : xxx
The station wiht the highest peak listeners is : xxx
There are xxx stations with 500 listeners or more
There are xxx stations with 200 listeners or more
There are xxx stations with 300 listeners or less
The country with the most current listeners is xx 
The country with the highest peak listeners is xx
Stations in Great Britain with 500 current listners or more : xxx, xxx, xxx

Bonus Points

  • Get the station with the highest peak listeners in Great Britain
  • List the station group(s) with the most stations

Help

If you are having trouble installing GIT here are some useful resources :

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages