Coder Social home page Coder Social logo

Simar Paul Singh's Projects

markupcalculator icon markupcalculator

Pricing problem =============== NuPack is responsible for taking existing products and repackaging them for sale at electronic stores like Future Shop and Best Buy. Companies will phone up NuPack, explain the process and NuPack needs to quickly give them an estimate of how much it will cost. Different markups to the job: * Without exception, there is a flat markup on all jobs of 5% * For each person that needs to work on the job, there is a markup of 1.2% Markups are also added depending on the types of materials involved: * If pharmaceuticals are involved, there is an immediate 7.5% markup * For food, there is a 13% markup * Electronics require a 2% markup * Everything else, there is no markup Another system calculates the base price depending on how many products need to be repackaged. As such, the markup calculator should accept the initial base price along with the different categories of markups and calculate a final cost for a project. The flat markup is calculated first and then all other markups are calculated on top of the base price plus flat markup. For example... Input 1: -------- $1299.99 3 people food Input 2: -------- $5432.00 1 person drugs Input 3: -------- $12456.95 4 people books Output 1: $1591.58 Output 2: $6199.81 Output 3: $13707.63

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.