Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you help me to do both problems using Python with Jupyter please ? thanks The interest i on a principle, P0, is a payment
Can you help me to do both problems using Python with Jupyter please ? thanks
The interest i on a principle, P0, is a payment for allowing the bank to use your money. Compound interest is accumulated according to the formula Pn=(1+i)Pn1, where n is the compounding period, usually in months or years. Write a function my_saving_plan (PO, i. goal) where the output is the number of years it will take PO to become goal at i% interest compounded annually. In [ ]: def my_saving_plan(po, i, goal): \# write your function code here return years In [ ]: \# Output: 15 my_saving_plan (1000,0.05,2000) In [ ] : t Output: 11 my_saving_plan (1000,0,07,2000) In [ ]: if Output: 21 my_saving_plan (500,0,07,2000) 12. Write a function my_trig_odd_even (M) where the output Q[i,j]=sin(/M[i,j]) if M[i,j] is odd, and Q[i,j]=cos(/M[i,j]) if M[i,j] is even. Assume that M is a two-dimensional array of strictly positive integers Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started