Question: python Question 4: Write a program that asks the user to enter an amount of money in the format of dollars and remaining cents. The
Question 4: Write a program that asks the user to enter an amount of money in the format of dollars and remaining cents. The program should calculate and print the minimum number of coins (quarters, dimes, nickels and pennies) that are equivalent to the amount input by the user. Hint: In order to find the minimum number of coins, first find the maximum number of quarters that fit within the amount of money input by the user, then find the maximum number of dimes that fit in the remaining amount, and so on. Your program should interact with the user exactly as it shows in the following example: Please enter your amount in the format of dollars and cents in two separate lines. 37 4 dollars and 37 cents are: 17 quarters, 1 dimes, 0 nickels and 2 pennies
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
