Re: Change for a Dollar



Mark P wrote:
mensanator@xxxxxxx wrote:
On Apr 26, 12:32?am, Ben Pfaff <b...@xxxxxxxxxxxxxxx> wrote:
"mensana...@xxxxxxx" <mensana...@xxxxxxx> writes:
Isn't a dollar coin considered change?
If anyone offered me a dollar coin as "change" for a dollar bill,
then I'd consider him to be making a joke.

But there are vending machines that no accept dollar coins.

However the OP wrote:

"For the sake of this program (and David Letterman ;-) , we can
only use pennies, nickels, dimes, quarters, and halves. David
is *not* smart enough to know about 2 and 3 cent pieces."

You guys are not getting nearly technical enough. Have you considered
that there are now the regular quarters plus additional ones
commemorating each state in the Union? That's 51 types of quarters
right there. Also, there is a new nickel and an old one, there are
wheat pennies, buffalo nickels, bicentennial quarters, etc. All in
all, I think there are a *lot* of ways to make change for a dollar
even if you restrict yourself to pennies, nickels, dimes, quarters,
and half dollars.

- Logan (who incidentally thinks we should abolish the penny)
.



Relevant Pages

  • Re: The old "making change" program
    ... > quarters, dimes, nickels, and pennies. ... > the number of quarters, dimes, nickels, and pennies in the total coins ... int *quarters, ...
    (comp.lang.c.moderated)
  • Re: The old "making change" program
    ... > quarters, dimes, nickels, and pennies. ... > the number of quarters, dimes, nickels, and pennies in the total coins ... int *quarters, ...
    (comp.lang.c.moderated)
  • Re: The old "making change" program
    ... {int cents; ... of total coins and the addresses of the integer variables named quarters, dimes, nickels, and pennies. ... The function should determine the number of quarters, dimes, nickels, and pennies in the total coins number passed to it and write these values directly into the respective variables declared in its calling function using pointers. ...
    (comp.lang.c.moderated)
  • The old "making change" program
    ... My new C programming class is absolutely kicking my butt. ... the number of quarters, dimes, nickels, and pennies in the total coins ... have an appropriate newsgroups line in your header for your mail to be seen, ...
    (comp.lang.c.moderated)
  • Re: The old "making change" program
    ... > My new C programming class is absolutely kicking my butt. ... > quarters, dimes, nickels, and pennies. ... have an appropriate newsgroups line in your header for your mail to be seen, ...
    (comp.lang.c.moderated)