See below for an example of a cash-in-drawer array: totally confusing

Tell us what’s happening:

  ["PENNY", 1.01],
  ["NICKEL", 2.05],
  ["DIME", 3.1],
  ["QUARTER", 4.25],
  ["ONE", 90],
  ["FIVE", 55],
  ["TEN", 20],
  ["TWENTY", 60],
  ["ONE HUNDRED", 100]

what does this array means ?

1.01 ? does this mean 1 dollar and 1 penny ?

[“NICKEL”, 2.05], does this mean 2 dollar and 5 penny ?

[“TWENTY”, 60], what is 60 here ?

Is there a way to file bug to make requirement more clearer

Hi @vikramvi,

Those values are just the total amount of that currency in the drawer.

So, for pennies there is one dollar and one cent worth of pennies in the drawer (or one-hundred-and-one pennies, e.g. .01 * 101 = 1.01).
For, twenties there is 60 dollars worth of twenties in the drawer (or three twenties, e.g. 20 * 3 = 60).

["PENNY", 1.01] means you’ve coins of penny values summed to total of 1 dollar and 1 penny.
I had to google those terms(DIME, NICKEL) to find the values…

This means you’ve 3 notes of value $20 summed to $60
Hope it’s clear

Thanks @robertgroves @mukeshgurpude

I wonder why can’t we have simplest user stories possible to avoid confusion.

Everyone needs to follow BDD to avoid bugs in initial stages itself, BDD is so underrated.

I remember the currency throwing me off a bit as well when I first saw this challenge.

I guess most values in the real world have some units attached to them and units can often be confusing, especially because the same units are not used universally.

let’s take example of
[“ONE HUNDRED”, 100]

does this mean I have total 100$ or 100 currencies worth of $100 each ?

This is confusing to me

I haven’t actually look at this challenge in a long time so I hope I’m right, but I believe it is the total amount using that unit.

So for five, it might be 55, and for hundred it might be 100, or 200, or 500, etc.

It means you have some, $100 currencies with total sum 100, here in this case only 1.