In the U.S coin system, the penny is the basic coin, and it is equal to cent,
Question:
In the U.S coin system, the penny is the basic coin, and it is equal to cent, a nickel is equivalent to 5 cents, a dime is equivalent to 10 cents, a quarter is equivalent to 25 cents, and half-dollar is equivalent to 50 cents. Design and implement a program that would make use of the functions shown below. Each function has a single int formal parameter Amount.
a) HalfDollars (): Compute the maximum number of half-dollars that could be used in making change for Amount.
b) Quarters():Compute the maximum number of quarter that could be used in making change for Amount.
c) Dimes ():Compute the maximum number of dimes that could be used in making change for Amount.
d) Nickels () : Compute the maximum number of nickels that could be used in making change for Amount.