Assume the bank allows customers to open SavingAccount for which there are certain policies that shall be enforced when the account holder withdraw some amount. Here is the basic version of...


Assume the bank allows customers to open SavingAccount for which there are certain policies that shall be enforced when the account holder withdraw some amount. Here is the basic version of SavingAccount class.



public class SavingAccount extends Account {


  private double minimumBalance = 10000;



public SavingAccount(String title, double balance,boolean filer) {


        super(title, balance, filer);


}



    @Override


    public void withdraw(double amount) {


        //...


    }


}



You are supposed to provide new definition of withdraw method that shall work as per following policies:



  1. The withdraw method shall proceed with transaction only if the remaining balance (after the transaction) do not goes below minimumAmount, as the bank want the saving account holder to maintain a minimum balance always.

  2. On each transaction, bank deduct 0.3% tax if the account holder if filer, if the account holder is not filer (not tax payer in the eyes of Government), the bank deduct 0.6% tax on withdrawn amount.



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here