Answer:
The program in Python is as follows:
def interest(P,R,T):
return I
P = float(input("Principal: "))
R = float(input("Rate (%): "))
T = float(input("Time (years): "))
print(interest(P,R,T))
Step-by-step explanation:
Required
Simple interest program using function
This defines the function
def interest(P,R,T):
This calculates the simple interest
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))