Code Monkey home page Code Monkey logo

scala-test-task's Introduction

scala-test-task

This is a test task for an interview executed using the Scala language. The task was as following:

Problem: You are provided with the *.csv.gz file containing some data about plane flights.

Data has the following schema "YEAR","QUARTER","MONTH","DAY_OF_MONTH","DAY_OF_WEEK","FL_DATE","ORIGIN","DEST"

You'll need to extract several statistics out of the data file: List of all airports with total number of planes for the whole period that arrived to each airport Non-Zero difference in total number of planes that arrived to and left from the airport Do the point 1 but sum number of planes separately per each week Write some tests for the implemented functions Each point 1-3 should produce a separate output file.

Technologies used

  • Scala
  • SBT
  • Scala-csv (as a csv reader)
  • Specs2 (as a testing framework)

How to install and run

This is the SBT-based project so there's nothing special:

  1. Clone the project
  2. Execute 'sbt test run' in a command line, this will launch the tests and the Main if succeeded
  3. Check the results in target/output

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.