In: Operations Management
In this progress report, you will be focusing on allowing one of the four transactions listed below to be completed by the user on one of his accounts: checking or savings. You will include defensive programming and error checking to ensure your program functions like an ATM machine would. The account details for your customer are as follows:
For this progress report, update the Progress Report 2 Raptor program that allows the account owner to complete one of the 5 functions of the ATM:
1 – Deposit (adding money to the account)
2 – Withdrawal (removing money from the account)
3 – Balance Inquiry (check current balance)
4 – Transfer Balance (transfer balance from one account to another)
5 – Log Out (exits/ends the program)
After a transaction is completed, the program will update the running balance and give the customer a detailed description of the transaction. A customer cannot overdraft on their account; if they try to withdraw more money than there is, a warning will be given to the customer. Also note that the ATM doesn’t distribute or collect coins – all monetary values are in whole dollars (e.g. an integer is an acceptable variable type). Any incorrect transaction types will display an appropriate message and count as a transaction.
Process 1:
Here we first assign the UserName variable to RobertBrown, then AccountBalance to the initial balance of $2500. Then we take the input Deposit Amount. The deposited amount is then added to the AccontBalance and the output is produced.
Process 2:
Here
we first store the password and check the password with the input,
if they match then ask the user in which account he wish to deposit
into. Finally the output balance is produced as earlier.
Process 3:
Here
the choice based system is given for the Savings account, same
thing has to be done for the checking account as well. Everything
will remain same. If any problem, raise question.