Backend - Assignment - Internship
Backend - Assignment - Internship
The module to be developed is a loan management system for any type loan.
1. Principal amount
2. Loan creation date
3. No of EMI’s (should be an array)
4. Each EMI should have the following
a. Principal EMI amount
b. Interest EMI amount
c. Total EMI amount
d. EMI date (can consider a period 30 days for every EMI since the creation
date)
e. Principal amount remaining from the main loan account.
5. Total Payable amount
The input should be a command line executable, no graphical UI needed. The input can be
provided as command line parameters or a JSON file based on your convenience.
The inputs which needs to be passed is the loan amount and loan tenure(No of EMI’s). The
program should perform all computations and give an output of all the components
provided above.
Note : The interest for the loan can be a static value of 12% for one year. A difference of
+/- 10 Rs is exempted from calculation.
Modular code and well thought out class/object model is expected as well as
Junit tests for main classes
Sample Input/output:
Output :
1. Loan creation date : 10th April 2020
2. Principal Amount : 1,000
3. No Of EMI’s : 12
4. Total payable amount : 1,000 (Principal)
+ 120 (Interest for 12 months) = 1,120
5. EMI Details :
a. EMI No : 1, Principal EMI : 83.33, Interest EMI = 10, Total EMI =
93.33, EMI Date : 10th May 2020, Principal remaining : 1026.67
j. EMI No : 10, Principal EMI : 83.33, Interest EMI = 10, Total EMI =
93.33, EMI Date : 10th Feb 2021, Principal remaining : 186.70
k. EMI No : 11, Principal EMI : 83.33, Interest EMI = 10, Total EMI =
93.33, EMI Date : 10th March 2021, Principal remaining : 93.37
l. EMI No : 12, Principal EMI : 83.33, Interest EMI = 10, Total EMI =
93.33, EMI Date : 10th April 2021, Principal remaining : ~0