Question: Create a single Java Program that models a Bank Account. Structure the program as shown below. Validate your model as specified on Slides 6 and
Create a single Java Program that models a Bank Account.
Structure the program as shown below.
Validate your model as specified on Slides 6 and 7.
Remember your model is only correct if every aspect of it performs as required.
A model is either correct or not correctthere is no such thing as partially correct
Pay careful attention to the specifications involved in the creation of your class and objectsfollow them exactly.




General: Bank Account Model 4 A bank account is a financial account maintained by a bank for a customer and has the following behavior. BankAccount (Method Specifications) display Accountinfo()...void See insert for required data and format Account Number: A-002 Name on Account : Richard Thomas Tax ID Number: 654888 _BALANCES Checking: $6590.02 Savings: $5635.0 ALLOWANCES Minimum Checking Balance: $1340.0 Maximum Checking Withdrawal: $2144.0 Minimum Savings Balance: $2970.0000000000005 Maximum Savings Withdrawal: $1080. depositToChecking(double d)...boolean Adds d to the checkingBalance and displays 'S[d] deposited to Checking' ...returns true depositToSavings(double d....boolean Adds d to the savingsBalance and displays '$[d] deposited to Savings'...returns true withdrawFromChecking(double d)...boolean Subtract d from the checking Balance after checking to ensure the amount of d is available and that the remaining checkingBalance is greater than the minCheckingBalance and displays '$[d] withdrawn from Checking'returns true... if either condition is not met then display message 'Withdraw cannot be made' and returns false withdrawFromSavings(double d....boolean Subtract d from the savings Balance after checking to ensure the amount of d is available and that the remaining savings Balance is greater than the minSavingBalance and displays 'S[d] withdrawn from Savings' return true... if either condition is not met then display message 'Withdraw cannot be made' and returns false Task: Object Creation 5 Create the following BankAccount objects. Last Name First Name Account Reference (Identifier) Tax IDNumber Checking Balance Savings Balance Savings Interest Rate B1 Johnson Bobby 123456 2390.00 3400.00 2% B2 Thomas Richard 654888 5360.00 5400.00 2.5% B3 Turner James 622898 360.00 5400.00 2.1% Task: Validate Model 6 Perform the following operations to validate the BankAccount models operation Test Deposit $100.32 to Johnson Checking Account Test 2. Deposit $2,000.00 to Johnson Savings Account Test 3. Withdraw $90.00 from Johnson Checking Account Test 4. Display Johnson Account Information Test 5. Deposit $1,230.02 to Thomas Checking Account Test 6 Deposit $1,000.00 to Thomas Savings Account Test 7 Withdraw $765.00 from Thomas Savings Account Test 8: Display Thomas Account Information Test 9: Display Account Information for Turner Account Expected Validation Console Output 7 Validation of your model should produce the following output to the console (include the task delineations) Account A-003 IS PENDING ADDITIONAL FUNDS Task 5 $1230.02 deposited to Checking Task 1 $100.32 deposited to Checking Task 6 $1000. deposited to Savings Task 2 $2000.o deposited to Savings Task 7 $765.0 withdrawn from Savings Task 3 $90.0 withdrawn from Checking Task 8 Account Number: A-002 Name on Account: Richard Thomas Tax ID Number: 654888 BALANCES Checking: $6590.02 Savings: $5635.0 ALLOWANCES Minimum Checking Balance: $1340. Maximum Checking Withdrawal: $2144.0 Minimum Savings Balance: $2970.0000000000005 Maximum Savings Withdrawal: $1080. Task 4 Account Number: A-001 Name on Account: Bobby Johnson Tax ID Number: 123456 BALANCES Checking: $2400.32 Savings: $5400.0 ALLOWANCES Minimum Checking Balance: $597.5 Maximum Checking Withdrawal: $956.0 Minimum Savings Balance: $1870.0000000000002 Maximum Savings Withdrawal: $680.0 Task 9 Account Number: A-003 Name on Account: James Turner Tax ID Number: 622898 BALANCES Checking: $0.0 Savings: $0.0 _ALLOWANCES Minimum Checking Balance: $0.0 Maximum Checking Withdrawal: $0.0 Minimum Savings Balance: $0. Maximum Savings Withdrawal: $0.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
