Question: programming language is python 3. Write a program that begins by reading a number of cents from the user as an integer. Then your program

3. Write a program that begins by reading a number of cents from the user as an integer. Then your program should compute and display the denominations of the coins that should be used to give that amount of change to the shopper. Your program should also show the total number of coins dispensed. The change should be given using as few coins as possible. Assume that the machine is loaded with pennies, nickels, dimes, quarters, loonies and toonies. A one dollar coin was introduced in Canada in 1987. It is referred to as a foonie because one side of the coin has a loon (a type of bird) on it. The two dollar coin, referred to as a toonie, was introduced 9 years later. Its name is derived from the combination of the number two and the name of the loonie. a. Write a function that takes that takes the total number of cents as input. Within the function it should print each denomination and return the total number of coins as an ouput. b. Make sure your input is an integer. moturn the annmnriate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
