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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter3: Using Methods, Classes, And Objects
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question

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

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Block Comments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning