GithubHelp home page GithubHelp logo

pay-calculator's Introduction

Introduction

Pay Calculator application is a basic Java based command line application developed following TDD approach. This application takes a CSV file as an input. CSV file should have at least five attributes - First Name, Last Name, Annual Salary, Super Rate and Pay period. The application then performs the payment calculation and outputs the salary per on per month basis. Application will prompt error messages if the input is not in correct format.

Dependencies

junit-4.11.jar
hamcrest-all-1.3.jar

Input

All input has to be in a comma separated format.

Input Format

Schema:

first name, last name, annual salary, super rate, pay period

e.g.

David,Rudd,60050,9%,01 March โ€“ 31 March

Run the application

  • Full path of input file is required if it's not in the same directory.
  • Application should have write access on the directory.
java -jar CalculatorApp.jar input.csv

Output

All output is in CSV format in output.csv file.

Exceptions

Informatory messages have been configured for erroneous states of application.

  • PAYCAL_E_001: Incorrect input format.
  • PAYCAL_E_002: Incorrect number format in CSV.
  • PAYCAL_E_003: Input file missing.
  • PAYCAL_E_004: Unknown pay frequency.
  • PAYCAL_APP_500: Something went wrong, please try again.

pay-calculator's People

Contributors

sorabh2008 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.