-
money
Need help
Write a program that calculates the number of quarters, dimes, nickels, and pennies necessary to generate the number of cents entered as input. For example, if 93 cents is entered as input, the program should indicate that three quarters, one dime, one nickel, and three pennies are necessary to add up to 93 cents.
-
I'll give you some helpful hints.
If you were to make change for a person in real life how would you do it?
Start with quarters the biggest unit.
How many do you need?
Work your way down till you get to pennys.
Start with some pencil and paper and write down instructions on how to give change. Go step by step. Then you can turn those instructions into code. Pretend the instructions are for a robot, and make them very explicit, and dont assume anything. Thats basicly what coding this is, telling the robot aka the computer what to do.
-
Please try it first. If you're stuck post some code