Please code in JAVA and follow the instructions as it is and dont use very advanced methods.. keep it basic Create a menu driven bank account application that supports the following operations: Deposit money Withdraw Check balance Create new account Example of the console: 1. Deposit money 2. Withdraw money 3. Check balance 4. Create new account Your choice, 0 to quit: 1. Create BankAccount Object that will be used to hold account number, first name, last name, and initial balance. Bank account numbers will be numeric and should be assigned by your program. 2. Since we don't have a database to use you will add accounts at runtime and process different transactions (deposit, withdraw, check balance) with them before ending the program (option 0 to quit). 3. If you select option 1 or 2 you need to ask for account number and amount. Then after processing display on the console the Account Number and current balance. 4. If option 3 is selected you need to ask for the account number and after processing display on the console the Account Number and current balance. 5. If option 4 is selected you need to ask for first name, last name, and initial balance. Then after processing display on the console a message thanking the account holder for joining the bank. 6. Make sure you add validations and display proper messages. Invalid option is selected. Users can't withdraw money they don't have. Users first and last name must be at least 3 characters each. 7. When the program quits: Display to the console the Account that has the highest balance and the one that has the lowest balance. Write contents of the BankAccount to a file called MyBank.txt (comma delimited file) Example of the console: Highest balance: Account 2 Amount $1532.57 Lowest balance: Account 4 Amount $35.15 Example of MyBank file: Notes 1,John,Smith,2345.99 2,Jane,Doe,1496.23 3,Jack,Clone,3645.87 4,Sara,James,21568.32
Please code in JAVA and follow the instructions as it is and dont use very advanced methods.. keep it basic
Create a menu driven bank account application that supports the following operations:
Deposit money
Withdraw
Check balance
Create new account
Example of the console:
1. Deposit money
2. Withdraw money
3. Check balance
4. Create new account
Your choice, 0 to quit:
1. Create BankAccount Object that will be used to hold account number, first name, last name, and initial balance. Bank account numbers will be numeric and should be assigned by your program.
2. Since we don't have a
4. If option 3 is selected you need to ask for the account number and after processing display on the console the Account Number and current balance.
5. If option 4 is selected you need to ask for first name, last name, and initial balance. Then after processing display on the console a message thanking the account holder for joining the bank. 6. Make sure you add validations and display proper messages.
Invalid option is selected.
Users can't withdraw money they don't have.
Users first and last name must be at least 3 characters each.
7. When the program quits:
Display to the console the Account that has the highest balance and the one that has the lowest balance.
Write contents of the BankAccount to a file called MyBank.txt (comma delimited file)
Example of the console:
Highest balance: Account 2 Amount $1532.57
Lowest balance: Account 4 Amount $35.15
Example of MyBank file:
Notes
1,John,Smith,2345.99
2,Jane,Doe,1496.23
3,Jack,Clone,3645.87
4,Sara,James,21568.32
Step by step
Solved in 2 steps