Question: Using Java create a banking program and corresponding flowchart. You will again be working on a team with me to build this program. I have

Using Java

create a banking program and corresponding flowchart. You will again be working on a team with me to build this program.

I have written the BankAccount class that you can use to create a BankAccount object. The file named BankAccount.java is attached.

Ask the user for their name, and then create an instance of the BankAccount object for the customer using their name and an account number of your choice. (You can just make one up.)

Then ask the user whether they want to: 1) MakeaDeposit 2) MakeaWithdrawal 3) Print Account Information

4) Quit

If the user chooses to make a deposit, ask them for the amount, and make the deposit to the bank account.

If the user chooses to make a withdrawal, ask them for the amount, and then make the withdrawal from the bank account.

If the user chooses to print account information, print the name on the account, the account number, and the account balance.

If the user enters an invalid choice, prompt them to choose again. Repeat the options until the user chooses to quit. Sample Session: Welcome to the Bank of Faith!

Please enter your name to create an account: Faith Satterthwaite 
Press 1 to make a deposit Press 2 to make a withdrawal Press 3 to get account information Press 4 to quit 5 Invalid choice, please try again: 1 
Please enter the amount to deposit: 100 
Press 1 to make a deposit Press 2 to make a withdrawal Press 3 to get account information Press 4 to quit 2 
Please enter the amount of the withdrawal: 50 
Press 1 to make a deposit Press 2 to make a withdrawal Press 3 to get account information Press 4 to quit 3 
Name: Faith Satterthwaite Account #: 12345 Balance: $50.0 
Press 1 to make a deposit Press 2 to make a withdrawal Press 3 to get account information Press 4 to quit 4 
Thank you for your business! 

EXTRA CREDIT (5 points): If a user enters an amount to withdraw that exceeds the amount they currently have in their bank account, then prompt them that they are trying to withdraw more money than they have in their account and ask them to enter a new amount to withdraw.

Press 1 to make a deposit Press 2 to make a withdrawal Press 3 to get account information Press 4 to quit 2 

Please enter the amount of the withdrawal: 50 Insufficient funds - Account currently has 25.00. Please enter a new amount to withdraw:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!