Answer to Question #307730 in Python for Sai

Question #307730


3. Write a program using function to calculate the simple interest. Suppose the customer is a senior citizen. She is being offered 15 percent rate of interest; he is being offered 12 percent rate of interest for all other customers, the ROI is 10 percent.

Sample Input:



Enter the principal amount: 200000 Enter the no of years: 3

Gender (m/f): m

Is customer senior citizen (y/n): n Sample Output:


1
Expert's answer
2022-03-08T16:03:36-0500
def SimpleInterest(p,r,t):
    s_i = (p * r * t) / 100
    return s_i
SimpleInterest(200000, 0.15, 3)
900.0

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS