Question
Need to write a java program that has the class BankAccount *MUST HAVE A SMALL MAIN METHOD AT THE END OF THE PROGRAM THAT CALLS
Need to write a java program that has the class "BankAccount"
*MUST HAVE A SMALL MAIN METHOD AT THE END OF THE PROGRAM THAT CALLS THE CLASS*
This program should only have "BankAccount" class with no extensions.
OUTPUT OF PROGRAM:
This program should ask the user for their balance in their Checking, Savings, And Retirement accounts.
Once the user enters the amounts, the program should ask if the user wants to withdraw, deposit, or transfer money from a specific account.
When the user enters what they want to do(if transfer, have program ask from what account to what account), then the program should ask for what amount.
Once the user enters the amount, the program will display all 3 accounts with the adjusted balance.
Create a minimum of three private data attributes for the class. These can all be primitive variables (int, char, long, double etc..), or they can be reference variables (another class*).
Remember, do not put functionality in your main method that is better done in a class method. *MUST HAVE A SMALL MAIN METHOD*
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