Professional Documents
Culture Documents
1. Create a program that will simulate the Withdrawal and Deposit of the ATM.
CURRENT BALANCE:
Php.7,000.00
PIN CODE:
134340
2. Ask the user to input the correct PIN CODE before the start of the program. If the pin is
correct it will continue to run else if not the program will be terminated..
3. Ask the user to choose mode of service:
Option 1 : WITHDRAW
If the user chooses withdraw, ask him/her to:
Enter the amount to withdraw: _______, If the amount the user had entered is greater
than the current balance, it will say SORRY INSUFICIENT BALANCE. Thus, the
program will be terminated
- Continue and compute for the amount withdrawn – balance if the amount entered is less
than or equal to the balance.
Print the current balance and
Say thank you for transacting with us.
Option 2 : DEPOSIT
CURRENT BALANCE:
Php.7,000.00
MPIN CODE:
0613
2. Ask the user to input the correct MPIN CODE before the start of the program. If the mpin is
correct it will continue to run else if not, the program will be terminated..
3. Ask the user to choose mode of service:
Option 1 : CASH OUT
If the user chooses cash out, ask the hi,/her to :
Enter the amount to cashout: _______, If the amount the user had entered is greater than
the current balance, it will say SORRY INSUFICIENT BALANCE. Thus, the program
will be terminated
Else if the amount entered is less than or equal to the balance, continue and compute for
the cash out – balance
Print the current balance and
Thank you for transacting with us.
Option 2 : CASH IN
1. Create a program that will simulate the Smart x BTS Photocard redemption
2. Ask the user to enter their cell number.
3. Ask the user to enter their GigaPoints.
If there is 99+ GigaPoints already choose between
o Photo Card Set A + 1GB of data valid for 3 days
o Photo Card Set B + 1GB of data valid for 3 days
Else if they don’t have enough GigaPoints ask them to avail the 1000 load for
additional 98 GigaPoints.
o If they choose YES, ask them to enter their payment. Then add the 98
GigaPoints to their current GigaPoints.
Then let them choose between
Photo Card Set A + 1GB of data valid for 3 days
Photo Card Set B + 1GB of data valid for 3 days
o If they choose NO, the program will be terminated.