0

Create a flowchart that inputs an amount and output the denomination breakdown by 100,50,20,10,5,1.
e.g. Amount: 237
Output: there are 2 100 peso
there are 0 50 peso
there are 1 20 peso
there are 1 10 peso
there are 1 5 peso
there are 2 2 peso


Hope you help me... coz i need it asap...
thanks... 2nd yr. IT

2
Contributors
3
Replies
4
Views
11 Years
Discussion Span
Last Post by WolfPack
0

Create a flowchart that inputs an amount and output the denomination breakdown by 100,50,20,10,5,1.
e.g. Amount: 237
Output: there are 2 100 peso
there are 0 50 peso
there are 1 20 peso
there are 1 10 peso
there are 1 5 peso
there are 2 2 peso


Hope you help me... coz i need it asap...
thanks... 2nd yr. IT

Do you really expect us to draw a flowchart for you? No we don't do that.
As for your question, write down the steps you would follow if your were doing in by hand on paper. Then you will have an idea of how to draw the flowchart.

0

even if there's no drawing of the flowchart that's fine with me... just tell me... please... need it badly...

0

How would you break down 231 in to 100,50,20,10,5,1.s?
These are the steps.

Divide 237 by 100 . The answer is 2. remainder is 31.
Divide the remainder ( 37 ) by 50. Answer is 0. remainder is 31.
Divide the remainder ( 37 ) by 20. Answer is 1. remainder is 17.
Divide the remainder ( 17 ) by 10. Answer is 1. remainder is 7.
Divide the remainder ( 7 ) by 5. Answer is 1. remainder is 2.
Divide the remainder ( 2 ) by 1. Answer is 2. remainder is 0.

So you draw the flowchart like this.
Step 1: Get next unprocessed element of the set { 100,50,20,10,5,1 }
Step 2: Divide the amount of money from that element.
Step 3: Store quotient ( Q ) and remainder ( R )
Step 4: You need a Q number of the current element
Step 5: If R is not 0, repeat from Step 1: Else Exit

Draw the flowchart for the above steps and you will get your answer.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.