Question: iii.Write a Python function definition following the instructions that are provided below. Important note: in order to raise a quantity to a power, the Python
iii.Write a Python function definition following the instructions that are provided below.
Important note: in order to raise a quantity to a power, the Python operator can be used. So for example, is evaluated as
Write a single Python function that implements the algorithm you wrote for part cii Your function must be a translation of your algorithm from part cii otherwise no marks will be awarded.
The function should have three arguments: one for the future savings, futuresavings, one for the annual interest rate, annualinterestrate, and a third for the number of years, nbyears, that the money will grow.
The function should have one return value for the recommended amount needed to deposit, estimateddeposit, which is a double rounded to two decimal places
Save your function in a file called QOUCU.py where OUCU is your OU computer username, eg abc
When you have completed your work on this part:
paste the function definition from your code file into your solution document as text with indentation preserved using an evenly spaced font such Courier New or Consolas
include the code file with your function in your TMA zip file.
ivTest the function by calling it with the arguments and in your Python program. Paste the function call and the result as text into your solution document.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
