A C++ program that is used to find the optimal coins for an amount when given certain denominations of coins. This program uses a matrix header file provided by Dr. Jon Beck of Truman State University. This program uses that matrix to find the possible combinations of coins that a person could use to make the amount. Then, that matrix is passed to a recursive optimization function which finds the minimal number of coins to reach the amount. Then a traceback function is called to print out the optimal matrix formed from the optimization function. An application of this program is for cashiers to use it to quickly find the minimal amount of coins needed for giving a customer change.
-
Notifications
You must be signed in to change notification settings - Fork 0
morrislm21/Optimal_Coins
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
A C++ program used to find the optimal coins when given an amount and the denominations of the coins being used.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published