Question: Change ApplicationCreate the Change Application which directs a cashier how to give change. The application has two inputs: the amount due and the amount received

Change ApplicationCreate the Change Application which directs a cashier how to give change. The application has two inputs: the amount due and the amount received from the customer. Display the dollars, quarters, dimes, nickels, and pennies that the customer should receive in return. In order to avoid roundoff errors, the application user should supply both amounts in pennies, for example 274 instead of 2.74.Hint: You can read a number from the console with the input() function:number = int(input("Please enter a value: "))where number is a variable.

Change ApplicationCreate the Change Application which directs a cashier how to give

SAMPLE RUN Enter the amount due in pennies: 2500 Enter the amount received in pennies: 3000 The change is: 5 dollars 0 quarters 0 dimes 0 nickels 0 pennies Enter the amount due in pennies : 2500 Enter the amount received in pennies: 2897 The change is: 3 dollars 3 quarters 2 dimes 0 nickels 2 pennies

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!