#Write a function that has 3 parameters: deposit, interest and number of #years. The function returns the amount in the account after all #these years. Write a program reads a number of users, for each user reads #information about the bank account and for each user calculates #the amount of money in the account at the end of the designated period. #USE LOOP FOR in FUNCTION and #in MAIN #Example: #deposit = 100 dollars, interest = 1% (1/100), years=5 #after one year: deposit=deposit+deposit*1/100=100+1=101 #after second year: deposit = 101+101*1/100=102.01 #after third year: deposit=102.01+102.01*1/100=103.03 #....you need to use LOOP def total(deposit, interest, years): for i in range(years): deposit=deposit+deposit*interest/100 return deposit def main(): users=int(input("enter number of users ")) for i in range(users): deposit=float(input("enter deposit ")) interest=int(input("enter interest ")) years=int(input("enter years ")) result=total(deposit, interest, years) print("you have", result, "dollars") main()