Write the java expression for the following. SI = PRT/100 where SI is simple interest, P is Principal, R is rate and T is time.
Answers
Simple Interest = (P × R × T)/100
P is Principal amount.
R is rate per annum.
T is time in years.
For example: Let’s say a man deposit 2000 INR in bank account at a interest rate of 6% per annum for 3 years, calculate the simple interest at the end of 3 years.
Simple interest = 2000*6*3/100 = 360 INR
Java Program to calculate simple interest
In the following example we are taking the values of p, r and t from user and then we are calculating the simple interest based on entered values.
I HOPE IT HELPS ☺️ FOLLOW ME DUDE (◍•ᴗ•◍)❤
Answer:
The answer to the given question is explained in the explanation.
Explanation:
Simple interest is a convenient method used by banks and the economic sector to calculate interest payments on loans. It is calculated daily in some mathematical terms.
To calculate the Simple Interest = (P × R × T)/100
Where P = Principal, R = Annual Interest, T = Time (years)
Algorithm:
- Determination of principal, interest, and loan terms.
- Applies to formulas.
- Simple interest output.
Java program for the given question is:
public class Main
{
public static void main(String args [])
{ float p, r, t, si; // principal, interest rate, time and interest each
p = 13000; r = 12; t = 2;
si = (p*r*t)/100;
System.out.println("Simple interest: " +si);
}}
#SPJ3