PROJECT Bank account simulator program
Objective To write a program that performs various bank transactions.
PROJECT DESCRIPTION
Bank of WCC has contacted you to write, compile and execute a complete program that creates bank account information and executes various transaction details for their clients.
Your program will prompt users for options such as creating an initial balance, entering deposits or withdrawals. Also, your program will allow for the printing of account information including interest at various interest rates.
Use loops, user defined methods, conditional and relational logic and the basics of OOP to accomplish the objectives of this program.
Error trapping will be part of your grade so dont forget to include some basic error trapping logic! Comment your code thoroughly as well for maximum points.
Project Detail
For this program you will create two separate Java files within your pack age, namely AccountHolder and AccountHolderTest.
The AccountHolder file must include the following class field members and data methods to allow for transaction processing.
| Field Name | Field modifier/type |
| annualInterestRate | static / double |
| balance | double |
| *Method Name | Method (Instance or Static) | Argument | Return Type |
| AccountHolder | Constructor | double | none |
| deposit | Instance | double | void |
| withdrawal | Instance | double | void |
| monthlyInterest | Instance | void | void |
*assume all methods are declared public
Of course if you would like to add any extra fields or methods in your class(es) feel free
to do so.
Coding detail for your methods must include the following:
- Allow the constructor to accept an argument representing an initial balance for the Account holder. Set your balance member equal to the value passed via the class constructor. Balances cannot start off negative! Include an error message if this is the situation.
- Define in your monthlyInterest method body an assignment statement to update the account holders balance to be effected as follows:
balance += balance * (annualInterestRate / 12.0);
- For your deposit & withdrawal methods either have your method body either increase or decrease the holders current balance accordingly.
An added rule to follow here:
Disallow a withdrawal attempts to drive account balance to drop below $50. Deliver a message to the console stating that the balance must hold to at least $50.
For your AccountHolderTest file, include any local variables in main to work the application. Include the following transactional detail from your main method for each run below, executed in the following order.
Your main() activities
- Allow the interest for the bank to be initially set at 4%. This can be hard coded in.
- Create an AccountHolder object and prompt the user for an initial account balance and have the initial balance passed into the AccountHolder
- Prompt the user to enter in a deposit amount.
- Prompt the user for a withdrawal amount.
- Display an ending balance for the month, including monthly interest, to the account holder.
Snapshot your results above and paste it into Word for credit. Zip your java files of your project separately as well for credit. Label files accordingly. Ex. Lab1_yourInitials.docx and Lab1_yourInitials.zip. Submit all files to BlackBoard when complete.

![[Solved] ITMD411-LAB 2-Bank account simulator program](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[Solved] ITMD411- LAB 2 -a program that will read and process bank data from a CSV file.](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.