Вы находитесь на странице: 1из 3

Start

Int balance1=5000,withdraw,deposit;
char YesOrNo, option, language;
string pincode1;

Select Language
[1]English [2]Filipino

Else If
Y “Welcome to our atm”
language
==’1’ “Enter your PIN”

If
“Maligayang Pag dating pincode1

A
saming ATM” Else If ==”123456

Y language
“Ilagay ang iyong PIN”
==’2’
N

i=5
N
else

N
i>0 “ATM BLOCK”
Left”
i=i-1 i=6
Y
1
“Attempts Left”

Y i>0

i=i-1
N
1
END

END
A

aas
“Welcome to our atm”
“Choose Transaction”
“[1]Balance inquiry [2]Cash Withdraw”
“[3]Cash Deposit [4]Exit “
A A

“Your “Do you want If


Y Y
case ‘1’: Balance another YesOrNo
is: “ transcation? ==’1’
[1] Yes [2] No “
N
N
Y “Withdraw”
case ‘2’:
“Enter Amount”

Else If
N YesOrNo Y “Thank you”
While (!(cin>>withdraw) || ==’2’

Y (withdraw%100!=0) ||
case ‘3’:
(withdraw>balance1) || END

(withdraw<=0 ) ) N
N
B 1 else “INVALID”

“Confirm”
case ‘4’: Y
“[1]Yes [2]No”
END

N C
Invalid If
Y
YesOrNo
==’2’

i=0 Else If balance1=


N Y
pincode balance1-
“Enter PIN” ==”1234
56”
withdraw

i<20 Else If
Y N “your remaining”
YesOrNo
“You withdraw”
==’1’
i=4
“Choose
A
the right”
i=i-1 Y
Invalid i>0 “Invalid PIN”
1 Left”
Option.
i=i+1
Exit N
END

“Attempts Left”
END
B C

“Deposit” “Are you sure do If Y “THANK YOU


“Enter Amount” you want to exit? YesOrNo FOR USING
[1] Yes [2] No “ ==’1’ OUR ATM”

while ( !(cin>>deposit ) || N END

(deposit%100!=0) ||
(deposit<=0 ) )

Y
Else If
YesOrNo

A
“Confirm” ==’2’
“[1]Yes [2]No”

N
else
If Y
YesOrNo
==’2’

END
“INVALID”

If If balance1 =
Y “Enter PIN” pincode Y
YesOrNo balance1 + withdraw
==”1234
==’1’
56”

“Your New Balance”

A
“You Deposit”

Invalid i=4
i=i+1
Option.
Exit 1 Y
i>0 “Invalid PIN”
Left”
END

N END

“Attempts Left”