Question: Can somone help me why my code is not running what is the issue and how can i solve it . i was told that

Can somone help me why my code is not running what is the issue and how can i solve it. i was told that its prompting you to enter a value but im unsure what value?
the question was the following
Create 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
amount_due = int(input("Enter the amount due in pennies: "))
amount_received = int(input("Enter the amount received in pennies: "))
change_due = amount_received - amount_due
dollars = change_due //100
change_due = change_due %100
quarters = change_due //25
change_due = change_due %25
dimes = change_due //10
change_due = change_due %10
nickels=change_due//5
change_due=change_due %5
pennies = change_due
print("The change is:")
print("Dollars:", dollars)
print("quarters:", quarters)
print("Dimes:", dimes)
print("Nickels:",nickels)
print("Pennies:", 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!