Question: Write a NetBeans Bank program that repeatedly prompts the user for a task selection. The tasks and their functions are listed below: 1. Add Account

Write a NetBeans Bank program that repeatedly prompts the user for a task selection.

The tasks and their functions are listed below:

1. Add Account When option 1 is selected the user is prompted to enter the account name and a beginning balance. The account is assign a sequential number. IE: The first time that an account is created, the account number is 1, the next account number is 2, etc. Print the users account number so that they know what it is for the below functions.

2. Find Account When option 2 is selected the user is prompted to enter an account number. The name and balance of that account is then printed for the user.

3. Deposit Money When option 3 is selected the user is prompted to enter an account number and a dollar amount. That dollar amount is then added to the balance of the account that corresponds to the account number entered.

4. Withdraw Money When option 4 is selected the function is almost exactly the same as option 3 except that the dollar amount is subtracted from the balance of the account.

(I am wanting to try using a While Loop to control the menu, but I'm still having trouble. Could someone help?)

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!