Skip to content

A C++ program used to find the optimal coins when given an amount and the denominations of the coins being used.

Notifications You must be signed in to change notification settings

morrislm21/Optimal_Coins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimal-Coins

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.

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

No packages published

Languages