Victordennis / ror-Gomathi-N

0 stars 0 forks source link

Integrated pricing calculator for the list of comma separated items using the given static item price #2

Open Gomathi-N opened 3 years ago

Gomathi-N commented 3 years ago

Assumptions:

  1. Invalid inputs other than the given item name can be ignored
  2. The unit provided for sale price is always an Integer
  3. Whenever a sale price is provided for an item, the customer will gain only profit. I.e., The total price calculated only with unit price will always be greater than total price calculated with sale price.
  4. The price of each item, total price, and profit can be rounded up to two decimal places.
  5. The given challenge mentions creating two directories named grocery-store-challenge and _price_calculatorchallenge. I hope this is a typo. I have created a directory _price_calculatorchallenge at the root of the project. Hope this is fine

Tested ruby version: 2.6.7

neerajsingh0101 commented 3 years ago

@Gomathi-N @gomathi-1136 Code looks ok. Assigning one more issue.