Giter Site home page Giter Site logo

customerrecords's Introduction

CustomerRecords

Liam Hayes Intercom take home test submitted March 14th, 2019

The program reads a list of customers in JSON format from a text file. Then calculates the customers distance from the Intercom Dublin office. Finally, it prints the list of customers within 100km of the office in ascending order based on the user id.

Instructions:

Run the program with Maven:

  1. mvn clean install
  2. mvn exec:java -D"exec.mainClass"="com.liamhayes.intercom.Driver"

Sample output:

11:58:02.690 [main] INFO com.liamhayes.intercom.CustomerAnalyser - Customers within 100km from Intercom Office: 11:58:02.694 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 4 Ian Kehoe 11:58:02.694 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 5 Nora Dempsey 11:58:02.694 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 6 Theresa Enright 11:58:02.694 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 8 Eoin Ahearn 11:58:02.694 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 11 Richard Finnegan 11:58:02.694 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 12 Christina McArdle 11:58:02.694 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 13 Olive Ahearn 11:58:02.694 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 15 Michael Ahearn 11:58:02.695 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 17 Patricia Cahill 11:58:02.695 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 23 Eoin Gallagher 11:58:02.695 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 24 Rose Enright 11:58:02.695 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 26 Stephen McArdle 11:58:02.695 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 29 Oliver Ahearn 11:58:02.695 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 30 Nick Enright 11:58:02.695 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 31 Alan Behan 11:58:02.695 [main] INFO com.liamhayes.intercom.CustomerAnalyser - 39 Lisa Ahearn

customerrecords's People

Contributors

liamsoftware avatar

Stargazers

 avatar

Watchers

 avatar

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.