Carpaccio programming JS


Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

We want to build our ecommerce website to sell our products. We will build a retail calculator. It is a runnable application with three inputs and one output.

Our model is a B2B and B2C company so we want to sell to big companies and also simple customers.

Be simple: in our platform, only one item can be bought at the time.

The product must accept 3 inputs from the user:

  • How many items
  • Price per item
  • 2-letters state code

The program have to output the total price.

Give a discount base on the total price and don't forget to add the tax to the discounted price depending on the state tax rate.

Here is the table of discount rate:

Order valueDiscount Rate

Here is the table of tax rate:

StateTax rate
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content