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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started