Introduction: Bank Account Savings Calculator

Thank you for choosing my savings calculator. Today we will be learning how to program a BankAccount class to keep track of your own personal expenses and savings. In order to make a bank account to track your expenses you will first need a basic understanding of Java as well as a Java compiler. In this tutorial I will be using Eclipse. (You can use any compiler that you prefer.)

PS- To see the full image of any of the photos just click on them

Step 1: Create a New Package "Bank" in a Blank Java Project

Step 2: Create Two New Class’ “BankAccount” and “BankAccountTester”

Step 3: In “BankAccount” You Will Need to Initiate 3 Private Variables

Step 4: Create a BankAccount Constructor

Step 5: Outline 5 Method Headers

Create “public void deposit(double x)”, ”public void withdrawal(double x)”, ”public double average()”, ”public String statement()”, and ”public double balance()”

Step 6: Program Deposit

Step 7: Program Withdrawal

Step 8: Program Average

Step 9: Program Statement

Step 10: Program Balance

Step 11: In "BankAccountTester" Program Your Import Statements

Step 12: Create the Header

Step 13: Create Welcome Statements

Step 14: Create a While Loop

Step 15: Create the User Input (Within the While Loop)

Step 16: Create the User Interface (Within the While Loop)

Step 17: Create the Closing Statements (Outside the While Loop)

Step 18: Test Your New Code in the Console

If there are any errors in your code, you should try troubleshooting your output statements in the Tester class. Also, make sure that all of your code is in the correct loop/ if statement.

If all is working well then congratulations, you should now have a fully functional BankAccount. Now you can easily keep track of your savings. Thank you and enjoy your new program.