954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

skrish79
Newbie Poster
1 post since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

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.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

use formula

simple_int=principle*rate_of_interest*no_of_yrs;

s_khardenavis
Newbie Poster
3 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

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.

linux
Posting Shark
933 posts since Aug 2006
Reputation Points: 118
Solved Threads: 30
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You