vquad
Banned
- Messages
- 2,644
- Joined
- Jan 25, 2010
- Messages
- 2,644
- Reaction score
- 39
- Points
- 30
salam otai2 sume..saya nak mitak pencerahan soalan nie.. xnampk langsung cmne nak buat...
Our coins come in denominations of 1 cent, 5 cents, 10 cents, 20 cents, 50 cents and 1 dollar. Assuming that there are unlimited number of coins, devise a coin-change algorithm to compute the minimum number of coins required to make up a particular amount? For example, for 46 cents you need 4 coins: two 20-cent coins, one 5-cent coin, and one 1-cent coin.
Present your algorithm using pseudocode and flowchart.
Our coins come in denominations of 1 cent, 5 cents, 10 cents, 20 cents, 50 cents and 1 dollar. Assuming that there are unlimited number of coins, devise a coin-change algorithm to compute the minimum number of coins required to make up a particular amount? For example, for 46 cents you need 4 coins: two 20-cent coins, one 5-cent coin, and one 1-cent coin.
Present your algorithm using pseudocode and flowchart.
