Question: In python code, write a program that, given a price in cents that is less than a dollar (i.e., 100 cents), determines the method of
In python code, write a program that, given a price in cents that is less than a dollar (i.e., 100 cents), determines the method of giving change that uses the fewest coins. The program will not take input from the user, but rather it will begin with a hard-coded value for the price, i.e.:
The output should look like this down below
The price of your item is 67 cents, and your change is 33 cents. Here's the change that uses the fewest coins: pennies: 3 nickels: 1 dimes: 0 quarters: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
