Coders Packet

Compound Interest calculator with Tabular and Graphical Representation using Java


This project calculates the compound interest, represents the result in form of a table, and also makes use of JFreeChart Library to represent the result graphically.

Compound interest is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on interest. It is the result of reinvesting interest, rather than paying it out, so that interest in the next period is then earned on the principal sum plus previously accumulated interest.


Formula Used-

The formula used for calculating Compound Interest in this project is-  

A = P((1+r/n)^(nt))


A- Maturity Amount

P- Principal Amount  

r- Rate of Interest 

n- Number of times amount compounded per year



I used Netbeans IDE to make this Project.

I used JFreeChart library to make the charts from the data produced after calculation.

jfreechart-1.0.1.jar and jcommon-1.0.0.jar are required for this project. They can be downloaded from the internet.


Below are the screenshots of the working of the application.


Screenshot-1 (Home Page)

Screenshot-1 Home Page


Screenshot-2 (Tabular representation of the calculated result)

Screenshot-2 Table representation


Screenshot-3 (Line Chart representation of the calculated result)

Screenshot-3 Line chart representation


Screenshot-4 (Bar Chart representation of the calculated result)

Screenshot-4 Bar Chart Representation


Screenshot-5  (3D-Bar Chart representation of the calculated result)

Screesnhot-5 3D-Bar chart representation

You can find the source code in the project zip file.

Download Complete Code


No comments yet