how do i write a function that returns a function that accepts one argument as the change. The function should convert the change in numbers of dollar, quarter, dime, nickel and penny.
for example: if someone pays $5.00 for a total $3.14 purchase, the program should have 1 dollar, 3 quarters, 1 dime and 1 cent as the result.