Question: programming language: JAVA a. Design an abstract class named Bank with two abstract methods named getPercentage() and getInterest(). b. Design three classes named BankA, BankB

programming language: JAVA

programming language: JAVA a. Design an abstract class named Bank with two

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 7%, 7.5% and 8% percentage rate for the three banks respectively. Override the getInterest() method to calculate simple interest for the three banks. Use $1000, $1500 and $2000 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. Simple interest formula is as given below: Simple Interest=Pxrxn where: P=Principal amount r=Annual interest rate n=Term of loan, in years

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!