im supposed to right a program that figures out the change for a customer. i have everything else written, but i can get to finish the formulas to give me the change in dollars, quarters, nickles, dimes, and pennies. Im supposed to assume that the consumer will only pay with whole dollars.
for example, if the change is $1.58, it should give results such as this.
1 dollar coin(s)
2 quarter(s)
0 dime(s)
1 nickel(s)
3 penny(ies)
does anyone know whow i can do this?
Log in to comment