Question: Do this program in JAVA. Do it in 30 minits . Do not plagiarise. Task 1 10 + 20 + 10 + 10 = 50
Do this program in JAVA.
Do it in 30 minits .
Do not plagiarise.

Task 1 10 + 20 + 10 + 10 = 50 points a. Design an abstract class named Bank with two abstract methods named getPercentage() and getInterest b. Design three classes named BankA, BankB and BankC that extend Bank. Override the getPercentage() method and use 5%, 6.5% and 7.5% for the three banks respectively. Override the getInterest method to calculate compound interest for the three banks. Use $1200, $1700 and $2100 as amount deposited in the banks respectively. C. Draw the detailed UML diagram that involves Bank, BankA, BankB and BankC showing all the class relationships, attributes and behaviors with appropriate modifiers. d. Write a Test class with the main() method that will build an array of length 3 and store three Banka, BankB and BankC objects in the array. When you are done making the array, print the maximum interest calculated for 3 years from the array. Compound interest formula is as given below: Compound Interest=P*(1 + r) -P where: P=Principal amount r=Annual interest rate t=Number of years' interest is applied
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
