Description of the code: A bank account, can be a savings account, or a checking account. All bank accounts have balance, and can perform deposit, withdraw and inquire. A savings account has an...


I dont need solution. Answer what is being asked. thank you


Description of the code: A bank account, can be a savings account, or a checking account. All bank accounts have balance, and can perform deposit, withdraw and inquire. A savings account has an interest<br>rate that is usually added to the current balance after a period of time. A checking account has a maintaining minimum balance. When balance is less than the minimum balance, a 100.00 is deducted from the<br>balance.<br>Your task is to complete the code based on the given description by matching the numbered part of the code with a valid word or statement;<br>public class BankAccount {<br>private double myBalance;<br>public BankAccount()<br>{myBalance = 0; }<br>public class CheckingAccount extends (7)<br>{ private static final double FEE = 5.0;<br>private static final double MIN_BALANCE=<br>1000.00;<br>public BankAccount (double balance)<br>{myBalance = (1); }<br>public (8) (double balance)<br>Eo super(balance); }<br>public void deposit (double (2))<br>{myBalance += amount; }<br>/* FEE of 100.00 deducted if withdrawal leaves<br>balance less<br>than MIN BALANCE. */<br>public void withdraw(double amount)<br>{if( myBalance - amount <(9))<br>withdraw((10));}}<br>public void withdraw(double amount)<br>{myBalance --= amount; }<br>public double getbalance()<br>{ return myBalance; }<br>public class SavingsAccount (3) BankAccount {<br>private double mylnterestRate;<br>public SavingsAccount()<br>{(4);<br>mylnterestRate= 0.05; }<br>public SavingsAccount(double balance, double rate)<br>(super((5))<br>mylnterestRate= (6); }<br>public void addlnterest() //Add interest to balance<br>{myBalance += myBalance* mylnterestRate;}<br>}<br>

Extracted text: Description of the code: A bank account, can be a savings account, or a checking account. All bank accounts have balance, and can perform deposit, withdraw and inquire. A savings account has an interest rate that is usually added to the current balance after a period of time. A checking account has a maintaining minimum balance. When balance is less than the minimum balance, a 100.00 is deducted from the balance. Your task is to complete the code based on the given description by matching the numbered part of the code with a valid word or statement; public class BankAccount { private double myBalance; public BankAccount() {myBalance = 0; } public class CheckingAccount extends (7) { private static final double FEE = 5.0; private static final double MIN_BALANCE= 1000.00; public BankAccount (double balance) {myBalance = (1); } public (8) (double balance) Eo super(balance); } public void deposit (double (2)) {myBalance += amount; } /* FEE of 100.00 deducted if withdrawal leaves balance less than MIN BALANCE. */ public void withdraw(double amount) {if( myBalance - amount <(9)) withdraw((10));}}="" public="" void="" withdraw(double="" amount)="" {mybalance="" --="amount;" }="" public="" double="" getbalance()="" {="" return="" mybalance;="" }="" public="" class="" savingsaccount="" (3)="" bankaccount="" {="" private="" double="" mylnterestrate;="" public="" savingsaccount()="" {(4);="" mylnterestrate="0.05;" }="" public="" savingsaccount(double="" balance,="" double="" rate)="" (super((5))="" mylnterestrate="(6);" }="" public="" void="" addlnterest()="" add="" interest="" to="" balance="" {mybalance="" +="myBalance*" mylnterestrate;}="">
Match each item to a choice:<br>(1)<br>(2)<br>(3)<br>(4)<br>(5)<br>(6)<br>(7)<br>(8)<br>(9)<br>(10)<br>Choices:<br>: extends<br>: balance<br>: amount<br>! super();<br>: CheckingAccount<br>: MIN BALANCE<br>: 100<br>: BankAccount<br>: balance<br>rate<br>

Extracted text: Match each item to a choice: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Choices: : extends : balance : amount ! super(); : CheckingAccount : MIN BALANCE : 100 : BankAccount : balance rate

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here