GithubHelp home page GithubHelp logo

wage-system's Introduction

wage-system

Design a salary calculation system

A company has three types of employees, and different types of employees have different ways of calculating wages, as follows. Besides, the employee will get extra 100 RMB during her/his birthday month.

  1. For employees with a fixed salary, the monthly fixed salary is 6,000 RMB.
  2. For hourly work model employees, with an hourly salary of 35 RMB and 160 work hours per month. The excess part is paid at 1.3 times.
  3. For sales staff, the basic salary is 3000 per month, and the monthly basic sales should be 20000 RMB. If the sales are 20000 ~ 30000 RMB, the commission rate for the excess part (beyond 20,000 RMB) is 5%. If the sales is 30,000 RMB and above, the commission rate for the excess part (beyond 20,000 RMB) is 8%.

Usage

  1. Run
java -jar target/wage-system.jar
  1. Test result
Should pay the total wage:31032.10

wage-system's People

Contributors

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