Bank Account Savings Calculator
by jzstagner5 in Circuits > Computers
807 Views, 2 Favorites, 0 Comments
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
Create a New Package "Bank" in a Blank Java Project
Create Two New Class’ “BankAccount” and “BankAccountTester”
In “BankAccount” You Will Need to Initiate 3 Private Variables
Create a BankAccount Constructor
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()”
Program Deposit
Program Withdrawal
Program Average
Program Statement
Program Balance
In "BankAccountTester" Program Your Import Statements
Create the Header
Create Welcome Statements
Create a While Loop
Create the User Input (Within the While Loop)
Create the User Interface (Within the While Loop)
Create the Closing Statements (Outside the While Loop)
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.