Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# Input the number of cents cents = int ( input ( Enter the number of cents: ) ) # Calculate the coin
# Input the number of cents cents intinputEnter the number of cents: # Calculate the coin denomination toonies cents cents loonies cents cents quarters cents cents dimes cents cents nickels cents cents pennies cents # Display the amount of change printftoonies toonies" printfloonies loonies" printfquarters quarters" printfdimes dimes" printfnickels nickels" printfpennies pennies"
# Input the number of cents
cents intinputEnter the number of cents:
# Calculate the coin denomination
toonies cents
cents
loonies cents
cents
quarters cents
cents
dimes cents
cents
nickels cents
cents
pennies cents
# Display the amount of change
printftoonies toonies"
printfloonies loonies"
printfquarters quarters"
printfdimes dimes"
printfnickels nickels"
printfpennies pennies"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started