Ok guys i am suppose to simulate an atm machine
declare a variable to store the acct balance
there shud be three options
1. if the user choses option 1, print balance
2. If the user choses option 2, ask the user to enter amt they want to withdraw. accept the amt, subtract from balance
3. if the user choses option 3, ask the user to enter amt they want to deposit. accept the amt, add to balance
at the end of the program output balance and thank you msg
here's what i did
START
DECLARE balance, amt, deposit, result
DECLARE option as integer
DOCASE
CASE OPTION = 1
RESULT = balance
CASE OPTION = 2
WRITE “Enter the amount you wish to withdraw”
READ AMT
RESULT = balance-amt
CASE OPTION = 3
WRITE “Enter the amount you wish to deposit”
READ deposit
RESULT = balance+deposit
WRITE” Balance is currently” RESULT “ Thank you for using the ATM”
ENDCASE
STOP
should there be a loop? i nt sure..