Ive stumbled across a question which has got me stumped. Im very new to algorithms and C syntax so im not to sure how to approach this question:
"You are asked to write a simple program that will accept an integer value in the
range of 5-95 and in increments of 5 at a time, representing the number of cents to
give to a customer in their change. The program should calculate how many coins
of each denomination and display this to the user. Valid coin values are 50, 20, 10
and 5. Your solution (program and algorithm) should be modular in nature. This
requires the submission of a high-level algorithm and suitable decompositions of
Im not sure whether or not to use looping or if else statements. I also dont know enough to figure out how to code these 5 increments then display how many coins are needed for the change.
Any hints on how to tackle this one would help me heaps.
ive been stuck on it for 10 hours.