Git Product home page Git Product logo

rms-coin's Introduction

The Coin Test

Please complete the coding exercise.

Summary

Write a simple application that given a number of pennies will calculate the minimum number of Sterling coins needed to make that amount.

Eg. 123p = 1 x £1, 1 x 20p, 1 x 2p, 1 x 1p

Requirements

  • Account for only the common £2, £1, 50p, 20p, 10p, 5p, 2p and 1p coins. Ignore those commemorative £5 coins
  • You should use Scala or Java to do this
  • The method should accepts an 'amount' string (Eg. 92p, £2.12) or integer and returns the denominations needed

We are particularly interested in the following:

  • Test Driven Development
  • Performance
  • Maintainability

You should also aim for:

  • Writing the code in a modular way, implementing separation of concerns (presentation layer, business logic layer, etc)
  • Verbalising how you're approaching and solving the problem and breaking it down as you're coding
  • High quality and maintainable code
  • Use of test driven development and writing new unit tests
  • Well documented and commented code
  • Follow coding standards

rms-coin's People

Contributors

delprks avatar

Stargazers

Airomega avatar

Watchers

James Cloos avatar  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.