Question: I need help complete this question using python programming language. 2.17 LAB: Interest rate calculation Let r be a bank's interest rate in percent per

I need help complete this question using python programming language.

I need help complete this question using python programming language. 2.17 LAB:Interest rate calculation Let r be a bank's interest rate in percentper year (APR). An initial amount of money P,also called as principal,

2.17 LAB: Interest rate calculation Let r be a bank's interest rate in percent per year (APR). An initial amount of money P,also called as principal, will mature to an amount of 7 n PT 100 after n years have passed. Write a Python program that takes P,r, and n as inputs from the user and provides as output the matured value after n years. For example if the user provides P,r, and n as 1000 0.95 your program must apply the interest-rate formula and provide 1048.4111145526908 as the output. 2.19 LAB: Equation verification Consider the following simple equations: The following code attempts the verify the above equations: a3 b- 5 a2-a*2 eql sum- a2 2ab b2 eq2_sum -a2 -2ab + b2 egl_pow-(a + b)*2 print print ("Ist equation : ("2nd equation: %g %h 80", %h", % % (eq1-sun, (eq2_pow, eq1-pow)) eq2-pow)) - : Fix this program by identifying and correcting erroneous statements, syntax errors, etc. 2.20 LAB: Quadratic equation Given the quadratic equation the two roots are - 4ac 2a and 2a Identify the problem with the following code, designed to calculate the two roots, and fix it. import math b - 26 c-3 q-math . sqrt (b*b- 4"a*c) x1-(-b + g)/2*a x2 (-b - q)/2*a print ("X1-%g, x2-%g" % (x1, x2))

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!