Using the basic flowchart symbols, create a flowchart that calculates the Minimum Number of coins for making any amount of change less then a dollar. Prompt the user for an amount of change between 1 and 99 cents. Determine the minimum number of quarters, dimes, nickels and pennies that will add up to the amount of change requested. An example is shown below;
My question is that I need to find the minimum number of coins to make change, I need this in a flowchart format. I've sort of started but I'm having trouble with the counters and accumulators that are required for it. So far I have:
- Start
- Output: "Enter change amount (1-99)"
- Input x
- quarter=25, dime=10, nickel=5, penny=1
I know I need a counter and an accumulator but I'm not sure where it needs to go. I also know I need a formula to subtract the number of coins take out and it needs some repeating loops. All in all I need some help getting started and any descriptions of these would be greatly appreciated!