Sunteți pe pagina 1din 3

B

Display:
DO YOU WISH TO HAVE ANOTHER
TRANSACTION? (Y/N)

Input:
transaction

N
Transaction==n or N

Display:
THANK YOU FOR
USING OUR ATM
SERVICE

END
A
Display:
Invalid input.
Choice ==3 Y Thank you for
Display: Accnum==1122334 N
using the ATM
Please Enter your Input: 4
program.
Account Number: Accnum
N
Y Y
Choice ==4
Display: Display:
Please Enter your Enter amount to be B
Account Number: withdrawn
N

B
Input:
Input: withdraw
Accnum
Display:
Display: N
Withdraw> amount
The Amount
Invalid input. Accnum==1122334 entered cannot be
Thank you for 4 withdrawn from
using the ATM the account
program.
Y

amount=amount-
Display:
Enter your PIN: withdraw

B Display:
Updated Balance is:
Input: <<amount<<
pin
Display:
Invalid input.
Thank you for pin!=3121 B
Y
using the ATM
program.

Display:
Enter New Pin: B
B

Input: Display:
Not Match. Thank Display:
Newpin
you for using the The Pin has been
ATM program. successfully
changed.
Display:
Enter New Pin for
confirmation:

N
Display:
Newpin==newpin2
Y Your New Pin is: <<
Input: newpin<<
Newpin2
Star
t Display:
Invalid input.
C Thank you for
using the ATM B
program.
Display:
welcome to ATM service
1. Check Balance
2. Deposit Cash
N
3. Withdraw Cash
4. Change Pin Pin !=3121 Display:
Y
Account Number: 11223344

Display:
Enter your choice: Input: Display:
Pin Account Name:
Alexis M. Landicho
Choice ==1 Y
Input:
Display:
choice
Please Enter your pin:

Choice ==2 Y Display: Display:


Please Enter your Balance is
Account Number: <<amount <<

A
Input: B
Accnum

Display:
N
Accnum==1122334 Y
Invalid input.
4 Display:
Thank you for
B Enter the amount to
using the ATM
be deposited:
program.

Input:
deposit
Display:
The deposited amount
N
Deposit < 100
should be at least 100.
Thank you for using the
ATM program.
Y

amount=amount+dep
osit

Display:
B Updated balance is
<<amount<<

S-ar putea să vă placă și