Bankaccount Account Number Name Balance Deposit Withdraw Printaccountinfo Checkingaccount Percheckfee Interestratepermo 1 (3.13 KiB) Viewed 9 times
Bankaccount Account Number Name Balance Deposit Withdraw Printaccountinfo Checkingaccount Percheckfee Interestratepermo 2 (7.06 KiB) Viewed 9 times
For CheckingAccount the monthlyUpdate will accept parameters fornumber of checks and multiply thatby the perCheckFee and subtract it from the balance. It will alsodetermine 1 months interest and add itto the balance using the interestRatePerMonth value.For SavingsAccount the monthlyUpdate will accept parameters fornumber of withdrawals and multiplythat by the perWithdrawalFee and subtract it from the balance. Itwill also determine 1 months interestand add it to the balance using the interestRatePerMonth value.
You will need to generate a contructor, getters and setters, anda toString method, along with themethods in the above UML Class diagram.
You should create instances of each type of class, BankAccount,CheckingAccount, and SavingsAccount.You test each of the methods defined above, in cases like withDrawwhere it can succeed and fail youneed to test both.
BankAccount account Number name balance deposit withdraw printAccountInfo
CheckingAccount perCheckFee interestRatePerMonth monthly Update printAccountInfo Savings Account perWithdrawalFee interestRatePerMonth monthlyUpdate printAccountInfo
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!