|
-
February 20th, 2013, 10:49 PM
#11
Re: Coin/Money change code doesn't give exact change!
 Originally Posted by math8
when you say "evenly" do you mean by solving: 25x+10x=y, where y is the cents value?
You have an unlimited number of quarters and dimes to grab from a pot. You have to make a total value of n cents. Can you take those quarters and dimes and create n cents with it? If so, how would you do it in a logical, consistent manner? Included in this solution is the "I can't do it" result, meaning that n can't be broken down into quarters and dimes evenly.
Forget about algebra for the moment -- write it out on paper if you have to and figure out a way of doing this. It is simply stated, so I don't know how much more simpler the problem can be presented.
Anyway, how was your formula going to work? The number of dimes and number of quarters are not necessarily the same value, yet you represented them both with "x".
Regards,
Paul McKenzie
Last edited by Paul McKenzie; February 20th, 2013 at 10:54 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|