Question: Perform the following operations (write code in your main method) to validate the Bank Account model's operations > Test 1: Deposit $100.32 to Johnson



Perform the following operations (write code in your main method) to validate the Bank Account model's operations > Test 1: 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 Create the following BankAccount objects. Savings Balance Account Reference Last Name First Name x Checking Balance Savings Interest Rate (Identifier) IDNumber 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% A bank account is a financial account maintained by a bank for a customer and has the following behavior. BankAccount (Method Specifications) Account Number: A-e02 Name on Account: Richard Thomas Tax ID Number: 654888 displayAccountinfo()...void See insert for required data and format BALANCES Checking: $659e.e2 Savings: $5635.e ALLOWANCES Minimum Checking Balance: $1348.e Maximum Checking withdrawal: $2144.0 Minimum Savings Balance: $2970.eeeeeeeeeees Maximum Savings withdrawal: $108e.e deposittoChecking(double d)...boolean Adds d to the checkingBalance and displays '[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 checkingBalance after checking to ensure the amount of d is available and that the remaining checkingBalance is greater than the minCheckingBalance and displays 'S[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 savingsBalance after checking to ensure the amount of d is available and that the remaining savingsBalance is greater than the minSavingBalance and displays '$[d] withdrawn from Savings' return true... if either condition is not met then display message 'Withdraw cannot be made' and returns false
Step by Step Solution
3.38 Rating (167 Votes )
There are 3 Steps involved in it
Program code public class BankAccount String AccountNumber FirstNameLastNameTaxIDNL double checkingB... View full answer
Get step-by-step solutions from verified subject matter experts
