Question: using python 3. Write a program that begins by reading a number of cents from the user as an integer. Then your program should compute

using python
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 loonie 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. 4. Write a function for each of the following, that takes two integers, a and b, as input and return the appropriate output. Your program should compute and display: a. The sum of a and b b. The difference when bis subtracted from a c. The product of a and b d. The quotient when a is divided by b The remainder when a is divided by b f. The result of logio a 8. The result of a h. Make sure your inputs are integer. e
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
