Answered step by step
Verified Expert Solution
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
make sure to
and additional features
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started