Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The scenario for this java exercise is the loan book of a bank i.e. the collection of loans that a bank has make sure to

The scenario for this java exercise is the loan book of a bank i.e. the collection of loans that a bank has

image text in transcribed

image text in transcribed

make sure to

image text in transcribed

and additional features

image text in transcribed

All loans have the following attributes: - loanID suburb balance SUu - term (the months left before the loan is expected to be fully paid) There are two kinds of loans the bank can issue (i) fixed rate loans where the interest rate is fixed for the duration of the loan, and (ii) floating rate loans where the interest rate will change from time-to-time during the term of the loan. A floating rate loan also comes with an offset account, so the customer can make additional loan payments in advance, but withdraw them if they need to later A fixed rate loan has one additional attribute rate (the interest rate) - A floating rate loan has one additional attribute: offset (the offset account balance) - Each month a loan customer will make their loan payment. A loan payment has the following attributes paymentID - loanID amount (of the payment) date (in yyyy/mm/dd format) Use the following class definition for the floating interest rate public class InterestRate private static double floatRate; public static double getFloatRate () return floatRate; public static void setFloatRate (double rate) floatRaterate; The interest rate applied for a fixed rate loan is the interest rate specified in their loan. The interest rate applied to a floating rate loan is the interest rate specified in the Inte InterestRate class. In your program use: InterestRate.getFloatRate O to retrieve the floating rate. Note this is a class method. For a floating rate loan, the interest is calculated as: floatingRate *(loan balance- offset balance)

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

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions

Question

7. Discuss the advantages of embedded learning.

Answered: 1 week ago