0

Hello,

I am writing the code for a cash register, and I have searched the site and nothing comes back that helps me, it basically has to take the change and break it up to the fewest 100's, 50's, 20's, 10's, 5's, and 1's. I have already written the cout and cin for the messages and input prompts. I need help with using the modulus to get the correct number of bills for any change combo for example change of 999.00 would need to output 9 hundreds, 1 fifty, 2 twenties, 0 tens, 1 five, and 4 ones. Needs to also work with small change for example 14 or 18 dollars.

thanks