Professional Documents
Culture Documents
Working History of ATM
Working History of ATM
g Of
ATM
Introducti
on
History of
ATM
Worki
ng
Calculation
for number
of notes
Assumptions
There are Rs 1,000/-,Rs
500/-,Rs 100/-, notes are
available in the ATM
We have to enter the
desired money in the multiple
of 100.
Step 1: Start
Step 2 : Store desired amount in int N
Step 3 : Divide N by 1000 and store in int X
Step 4 : No of Rs 1000 notes = X
Step 5 : N=N-X*1000
Step 6 : Divide N by 500 and store in int X
Step 7 : No of Rs 500 notes = X
Step 8 : N=N-X*500
Step 9 : Divide N by 100 and store in int X
Step 10 : No of Rs 100 notes = X
Step 11 : N=N-X*100
This process goes on until N=0
Step 12 : End
Advanta
ges
Disadvant
ages
THANK
YOU
Presented By:
Ritesh Kumar Mishra