DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   java program to calculate simple interest (http://www.daniweb.com/forums/thread63671.html)

skrish79 Dec 3rd, 2006 1:29 am
java program to calculate simple interest
 
Hi,

im very new to java. i would appreciate if some one can help me out with a Java program to calculate simple interest.

Thanks in advance
regards
krishna

jwenting Dec 3rd, 2006 2:54 am
Re: java program to calculate simple interest
 
What exactly do you have trouble with?
We're not here to write your program for you, only to help you with specific questions about details where you're stuck.

s_khardenavis Dec 9th, 2006 5:55 am
Re: java program to calculate simple interest
 
use formula

simple_int=principle*rate_of_interest*no_of_yrs;

linux Feb 11th, 2007 4:53 pm
Re: java program to calculate simple interest
 
Yes, like s_khardenavis said, you can use take the input of the user for p, principal, for r, rate of interest, then for t, time, and then display i, which is prt, or p*r*t.


All times are GMT -4. The time now is 3:30 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC