Need help with Exact Change

Need help with Exact Change
0.0 0

#1

Hi everyone! I need some help with Exact Change. I cannot understand structure of cid array:

// Example cash-in-drawer array:
// [[“PENNY”, 1.01],
// [“NICKEL”, 2.05],
// [“DIME”, 3.10],
// [“QUARTER”, 4.25],
// [“ONE”, 90.00],
// [“FIVE”, 55.00],
// [“TEN”, 20.00],
// [“TWENTY”, 60.00],
// [“ONE HUNDRED”, 100.00]]


[“PENNY”, 1.01]

1.01 of what? What does it mean?
I feel lost somehow.


#2

That means you have 1.01 dollar worth of pennies.


#3

Oh, thank you! Now I see!