Computer Science, asked by tomarpiper56, 3 months ago

Create a program to input principal amount, time and rate of interest. Calculate the Simple Interest in python

Answers

Answered by 18sayalirpagare
1

Answer:

#SI-finder.

def SI_Finder():

   Amount=int(input("Enter-the-Principal-Amount\n"))

   Rate=int(input("Enter-the-Rate-of-interest\n"))

   Time=int(input("Enter-the-Time-period\n"))

   interest=(Amount*Rate*Time/100)

   print("The interest is Rs", interest)

text=SI_Finder()

Explanation:

Answered by Anonymous
2

Simple Interest - Python

Simple Interest is the method of calculating the interest amount for a particular principal amount of money at some rate of interest.

The basic formula to calculate Simple Interest is as follows:

\implies SI = \dfrac{P \times R \times T}{100}

Where, P denotes Principal Amount, R denotes Rate of Interest and T denotes Time Period.

We need to first take User Input for the values of Principal Amount (P), Rate of Interest (R) and Time Period (T). We will do this by using Scanner.

We store them as float values. Then, we calculate the Simple Interest using the formula and display it.

\rule{300}{1}

SimpleInterest.py

P = float(input("Enter Principal Amount (P): "))

R = float(input("Enter Rate of Interest (R): "))

T = float(input("Enter Time Period (T): "))

SI = (P*R*T)/100

print("%f * %f * %f/100 = %f" %(P, R, T, SI))

Attachments:
Similar questions