Tuesday, April 19, 2011

4 Down, 1 To Go!

NOTE: This blog is to catch you up on last week's events.

Just a quick summary on what happened with Lemonade Stand Bug #4.  This bug was the check to calculate the user's profit and entering that value using the fewest coins possible.  What we discovered after we thought we had fixed it, was that it actually does not require the absolute fewest coins possible.  We then thought that this was a bug in the original creator's logic, but upon further investigation and testing, we realized that the game was actually working to simulate real life.

Here's how it works: Each amount of money can be created using the absolute fewest amount of coins.  For example, say you've earned $3.05.  Using the fewest denominations, that is 3 dollars and 1 nickel.  What the game then allows is for one unit of the smallest denomination to be exchanged for even smaller denominations.  So that nickel can be correctly entered as 5 pennies.  Using a different amount, if you earned $4.20, that should be 4 dollars and 2 dimes.  However, one of those dimes can be exchanged for 2 nickels.  Then, one of those nickels can be exchanged for 5 pennies.  We decided that it was actually very good that the simulated real life this way, so we left it as is.  The only problem was the confusion based on the instructions, so our decision was to edit the LemonadeStand wiki page to include this information.

Then we moved on to Bug #5...we're getting close!

No comments:

Post a Comment