Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Java A bank account is a financial account maintained by a bank for a customer. The Constructor must have the following signature: public BankAccount(String

Using Java

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

A bank account is a financial account maintained by a bank for a customer. The Constructor must have the following signature: public BankAccount(String lastName, String firstName, BANKACCOUNT String taxIDNumber, double checkingBalance, double savingsBalance, double savingslnterestRate) String accountNumber String lastName String firstName String taxIDNumber double checkingBalance double minCheckingBalance double maxCheckingWithdrawal double savingsBalance double minSavingBalance double maxSavingWithdrawal double savingsinterestRate static int AccountCount o - Constructor displays the following message to the console when the object is created: Account [Account Number] HAS BEEN CREATED - Utilize the following to create the specified data fields: accountNumber-'A-oo' AccountCount (starts at 1) minCheckingBalance-25% of checkingBalance maxCheckingWithdrawal = 40% of checkingBalance mnSavingBalance-55% of savingsBalance maxSavingwithdrawal-20% of savingsBalance - - - + displayAccountlnfo0...void + deposit ToChecking(double d)...void +depositToSavings(double d)...void The BANKACCOUNT object cannot be instantiated unless the checkingBalance is greater than s1000.00 and the savingsBalance is greater than $500.oo...if the object cannot be instantiated the following message is displayed to the console: Account [Account Number] HAS NOT BEEN CREATED' withdrawFromChecking(double d)...void + withdrawFromSavings(double d)...void BANKACCOUNT (Method Specifications) displayAccountlnfo()...void See insert for required data and format ACCOUNT: A-001 Bobby Johnson 123456 CHECKING BALANCE : $2400.32 SAVINGS BALANCE $5400.0 Maximum Checking Withdrawal: $956.0 Maximum Savings Withdrawal: +680.0 Minium Checking Balance: 597.5 Minimum Savings Balance: $1870.0000000000002 depositToChecking(double d)...void Adds d to the checkingBalance depositToSavings(double d)...void Adds d to the savingsBalance withdrawFromChecking(double d)...void 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...f either condition is not met then display message 'Withdraw cannot be made' withdrawFromSavings(double d)...void 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...if either condition is not met then display message 'Withdraw cannot be made' Create the BankAccount Class (include a main method) Create the following BankAccount Objects First Name Checking Savings Account Reference Tax Savings Last Name IDNumber Balance Balance Interest Rate B1 B2 B3 Johnson Bobby 123456 2390.00 3400.00 2% 5360.00 5400.00 2.5% 2.1% Thomas Richard 654888 James 622898 360.00 5400.00 Turner Test 1: Deposit $100.32 to Johnson Checking Account Test 2: Deposit $20oo.oo to Johnson Savings Account Test 3: Withdraw s9o.oo from Johnson Checking Account Test 4: Display Johnson Account Information Test 5: Deposit $1230.02 to Thomas Checking Account Test 6: Deposit $1000.00 to Thomas Savings Account Test 7: Withdraw $765.00 from Thomas Checking Account Test 8: Display Thomas Account Information Test 9: Display Account Info for Turner Account Code the specified tests in the main method of the BANKACCOUNT class

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Upgrade Migration And Transformation Tips And Techniques

Authors: Edward Whalen ,Jim Czuprynski

1st Edition

0071846050, 978-0071846059

More Books

Students also viewed these Databases questions