Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More specific answer #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

More specific answer #5

wants to merge 1 commit into from

Commits on Aug 1, 2016

  1. More specific answer

    The given answer failed to account for qty values above 20. In the case of the "banana" item, it returned an freeQty value of 6.  In the exercise description it states "Purchases of 5 or more receive 1 free.  Purchases of 10 or more receive 3 free". The original code added +3 for each 10 instead of +3 if qty is >= 10.  Great course otherwise :) .
    Zesky665 authored Aug 1, 2016
    Configuration menu
    Copy the full SHA
    76ecc7b View commit details
    Browse the repository at this point in the history