-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathThe_App's_Functions.txt
31 lines (22 loc) · 1.89 KB
/
The_App's_Functions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Build a command-line Banking Application with the following functionalities:
1. Application starts with a prompt to the user with the following options: ----> DONE!
Press 1: create account ----> DONE!
Press 2: transaction ----> ALL DONE!
2. Create account: This should prompt you to enter an email/or unique identity, and then a password. You must check your data structure to make sure the account is
unique before creating the new account -----> DONE!
[Hint: Ensure that your data structure caters for each users account balance, you might want to initialize this to 0.0.] -----> DONE!
3. Transaction: Authenticate the user by prompting for a password, if the password is correct, user is authenticated and show the following options:----> DONE!
Press 1: check balance ----> DONE!
Press 2: deposit ----> DONE!
Press 3: withdraw ----> DONE!
Press 4: transfer ----> DONE!
if the password is incorrect, tell the user that they are not authorized and go back to the create account option ----> DONE!
4. check balance: query your data structure to check the balance of the authenticated user ----> DONE!
5. deposit: prompt the user to enter an amount, then add the amount to the users balance ----> DONE!
6. withdraw: prompt the user to enter an amount. If the user does not have money in their account, tell them to deposit and move to the deposit prompt. ----> DONE!
If the user has money but is not up to amount for withdrawal, tell user to deposit enough money. ----> DONE!
If the user has enough money, print out the amount withdrawn and the available balance. ----> DONE!
7. transfer: prompt the user to enter an email of the person they want to transfer to, prompt for the amount, deduct the amount from the authenticated users balance,
add the amount to the beneficiaries account. ----> DONE!
Ensure that you clog all the gaps for those process flows that I have not explicitly defined
Exceptions handlers for all inputs