CSC 161 Schedule Readings Labs & Projects Homework Deadlines Resources

Making Change

Suppose a store's cash register stocks as many coins (pennies, nickels, dimes, quarters, fifty-cent pieces, and one-dollar coins) and as many bills (one-dollar, five dollar, ten dollar, and twenty dollar denominations) as possible.

Write a program that reads an amount of change (up to $200.00) and prints:

Programming Notes

Hint: Although this problem can be solved in many ways, one reasonably efficient, simple, and elegant algorithm makes heavy use of recursion.