Hello guys. In my computer programming class I need to make a program that can compute the pocket change of any number specified by the user. So for example if I were to input 1.30 in the program it should output something like
"You have 5 quarters"
"You have one nickels"
"You have 0 dimes"
"You have 0 pennies"
I understand this is most likely the most simplest question but I am stumped right now.
What would be an appropriate algorithm for this task?