Skip to main content
1 vote

Wk 1 cash assignment

Something was overlooked. It works when cash is a multiple of 5 because the code doesn't correctly handle the last few pennies. Look at the last if block, lines 35 to 37. This code correctly adds ...
Cliff B's user avatar
  • 69k

Only top scored, non community-wiki answers of a minimum length are eligible