Question: hi I am having issues with the second question can you please help me out? Run Markdown . Validate Question 3a: Compound Interest with Regular

hi I am having issues with the second question can you please help me out?
hi I am having issues with the second question can you please
help me out? Run Markdown . Validate Question 3a: Compound Interest with

Run Markdown . Validate Question 3a: Compound Interest with Regular Deposits (2 points) It p in the bank's Interest rate in decimal (0.9., 0.05 moana 5%.) per year, an initial amount a will grow after years to a(1 + p) Write a Python function growtha, P, n) that returns the future value (that is, the total amount of funds), starting with amount arato p. for n years. You can assume that all parameters are non-negative (Your solution does not need to check for that condition, it should simply assume It) The input D represents the interest rate as a floating point number In [16): def growth(a, P. n): # Your Code Here! swa pow(1+0,6) returns # YOUR CODE HERE In (17): growth (340000,0.0314,25) 736473.447868039 Out (17) True In 181: growth (10,0.01, 10) - 11.046221254112001 Out 1181: True In 1911 growth (65,100,3) - 66968565 Out 1071 True In 11 In 1: In Question 3b (1 point) What is the difference in savings if you invest $2000 for 20 years at 2% vs. 1% interest? Set as to the difference in savings (as a positive number, rounded to two decimal places) in the cell below. NOTE: you should call the function you wrote in the previous section 21: def question3b0): # your work here! a 2000 20 pl= 0.02 p2 0.01 # YOUR CODE HERE ans 3-growth(a, p1,n)-growth(a,p2,n) ans 3 abs(ans) return ans 3 print("the three given results are for the given input) print(growth (340000,0.0314,25)) print (growth (10,0.01,10))" print (growth (65,100,3) print ("The output of the question 36 print(question3b) NameError Traceback (most recent call last) in coduto 7 BW YOUR CODE HERE --> 9 ans 3 growth o.pl,n)-growthta, p2,n) 10 ans 3 abs (ans 3) 11 return ans 3 Nanerrort name a' is not defined

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!