Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer all of the questions ASAP (within 20 minutes). I will thumbs up/rate if it's correct. Please it's urgent. a. Design an abstract class

Please answer all of the questions ASAP (within 20 minutes). I will thumbs up/rate if it's correct. Please it's urgent.

image text in transcribed

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. a 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=Px(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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

=+d. Write at least five sentences or phrases for body copy.

Answered: 1 week ago

Question

3. Identify challenges to good listening and their remedies

Answered: 1 week ago

Question

4. Identify ethical factors in the listening process

Answered: 1 week ago