Question: Generate the Driver file ( main . cpp ) and check your program with the following outputs: table [ [ Operation to Be Tested

Generate the Driver file (main.cpp) and check your program with the following outputs:
\table[[Operation to Be Tested and Description of Action,Input Values,Expected Output],[\table[[Given a set of coin values and an amount of money,],[determine the minimum number of coins to make the given],[amount of money. The input starts with an integer n,],[specifying the number of coin types. Next n integers are the],[coin values. The final integer is the amount of money you],[have to make. You can assume that the amount will always],[be possible to make using the given coin types.]],3
\table[[3,2,3,5,11],[3,5,20,30,40],[,,,,]],\table[[3],[2]]],[,,]]Generate the Driver file (main.cpp) and check your program with the following outputs:
Operation to Be Tested and Description of Action
Given a set of coin values and an amount of money,
determine the minimum number of coins to make the given
amount of money. The input starts with an integer n,
specifying the number of coin types. Next n integers are the
coin values. The final integer is the amount of money you
have to make. You can assume that the amount will always
be possible to make using the given coin types.
Input Values: 323511
35203040
Expected Output: 3
2
Try the input 3235200. Explain your programs outcome
with this input.
Generate the Driver file ( main . cpp ) and check

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!