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 email address is the following,, and
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.
My personal website is

My programming website is

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

Sample Program Program Output

My video tutorial on my YouTube channel.

Program Listing

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.out.print("\tCompound Interest Solver in Java");
       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.print("\tThe Compound Interest is $" +compound_solve+".");
       System.out.print("\tEnd of Prorgam");