Skip to content

ankushgandotra/ItemPriceCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

ItemPriceCalculator

  1. Code files to calculate the price of input items.
  2. Items, prices and discounts are configurable through json file.
  3. N-Unit test to test code function.

Open solution file @/ItemPriceCalculator - PriceCalculator.sln

Discount There are 2 ways discount can be given on products

  1. Direct percentage discount on a product
  2. Exended Disocunt -Percentage discount on a product on purcahse of N quantities of another product.

Example

  1. Apples have a 10% discount off their normal price this week

  2. Extended Discount - Buy 2 cans of Bean and get a loaf of bread for half price. This will be applied only if there is no original discount on second item such as bread.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages