Answer:
The program in Python is as follows:
def interest(P,R,T):
[tex]I = P * R * T/100[/tex]
return I
P = float(input("Principal: "))
R = float(input("Rate (%): "))
T = float(input("Time (years): "))
print(interest(P,R,T))
Explanation:
Required
Simple interest program using function
This defines the function
def interest(P,R,T):
This calculates the simple interest
[tex]I = P * R * T/100[/tex]
This returns the calculated interest
return I
The main begins here
These get inputs for principal, rate and time
P = float(input("Principal: "))
R = float(input("Rate (%): "))
T = float(input("Time (years): "))
This calls the interest function
print(interest(P,R,T))