Categories

# Compound Interest Solver in Java

I wrote this program will ask the user to give the principal amount to be a loan, a number of years to be paid the loan and the interest rate and then the program computes the compound interest based on the amount being loan by the customer or client.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.

I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

Program Listing

Compound_Interest.java

``````
import java.util.*;

public class Compound_Interest {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

double principal=0.00, rate=0.00, t=0.00;
double compound_solve=0.00;

Scanner input = new Scanner(System.in);

System.out.println("\n");
System.out.print("\tCompound Interest Solver in Java");
System.out.println("\n");
System.out.print("\tGive the Amount  \$        : ");
principal = input.nextDouble();
System.out.print("\tGive the Number of Years  : ");
t = input.nextDouble();
System.out.print("\tGive the Interest Rate    : ");
rate = input.nextDouble();

compound_solve = principal * Math.pow(1.0+rate/100.0,t) - principal;

System.out.println("\n");
System.out.print("\tThe Compound Interest is \$" +compound_solve+".");
System.out.println("\n");
System.out.print("\tEnd of Prorgam");
System.out.println("\n");

}

}
``````