Question: For this exercise you are going to write a function that makes change for amounts less than one dollar. Input must be a positive integer
For this exercise you are going to write a function that makes change for amounts less than one dollar. Input must be a positive integer up to representing an amount of money, in cents. Output must be the original amount of money together with a set of coins quarters dimes, nickels that could make up the amount. The function must produce change containing the minimum number of coins required to produce the given amount. Remember that the penny is no longer in production, so you must round the value up or down accordingly. The output must be reasonable and nonstilted. For example, the input of should produce results such as:
cents requires quarters, nickel
rather than
cents requires quarters, dimes, nickels
Provide some message if values do not produce output.
def makeChangechange :
return
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
