0% found this document useful (0 votes)
989 views1 page

Flowchart - Coin Count

This document contains pseudocode for a program that takes in an amount of change in cents and calculates the number of quarters, dimes, nickels, and pennies needed to represent that amount. It subtracts the highest denomination coins first, incrementing the respective counters, until the remaining amount is less than that coin's value, at which point it moves on to the next lowest denomination coin.

Uploaded by

jackli21
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
989 views1 page

Flowchart - Coin Count

This document contains pseudocode for a program that takes in an amount of change in cents and calculates the number of quarters, dimes, nickels, and pennies needed to represent that amount. It subtracts the highest denomination coins first, incrementing the respective counters, until the remaining amount is less than that coin's value, at which point it moves on to the next lowest denomination coin.

Uploaded by

jackli21
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

START

Amount= 0 Quarters= 0 Dimes= 0 Nickels= 0 pennies= 0

T Amount>= 10

Amount= amount -10 Dimes= dimes+ 1

OUTPUT Would you like to continue? (Y/N)

F OUTPUT Please enter the amount of change. INPUT Continue Output Dimes=, dimes

T Continue= Y INPUT amount T Amount>= 5 Amount= amount - 5 Nickels= nickels + 1 F F STOP

T Amount>=25

Output Nickels=, nickels Amount= amount -25 Quarters= quarters+ 1

F T Output Quarters=, quarter Amount>=1 Amount= amount -1 Pennies= pennies + 1

Output Pennies=, pennies

You might also like