Question: 5 . 1 9 LAB: Exact change - functions Write a program with total change amount as an integer input that outputs the change using
LAB: Exact change functions
Write a program with total change amount as an integer input that outputs the change using the fewest coins, one coin type per line. The coin types are dollars, quarters, dimes, nickels, and pennies. Use singular and plural coin names as appropriate, like penny vs pennies.
Ex: If the input is:
or less, the output is:
no change
Ex: If the input is:
the output is:
quarter
dimes
Your program must define and call the following function. The function exactchange should return numdollars, numquarters, numdimes, numnickels, and numpennies.
def exactchangeusertotal
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
