25 coins = $2.00
Write a computer program which will determine every way in which exactly 25 coins equals exactly $2.00.
Our algorithm will use a series of nested loops which generates every possible combination of dollar coins (e.g., Susan B. Anthony Dollars), half dollars, quarters, dimes, nickels, and pennies that has any chance of being the answer and then filters all these combinations through an If-Then statement that will display only the combinations that add up to 25 coins and have 2 dollars in value.
Make sure that the output is easy to understand. Print words of explanation. For example:
1 dollar coin
1 half dollar
0 quarter
3 dimes
0 nickels
20 pennies