Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i . Develop an initial decomposition of the problem using the chevron notation ( > and > > ) from the module materials. Include your
iDevelop an initial decomposition of the problem using the chevron notation and from the module materials. Include your initial decomposition in your solution document.
iiBuilding on your initial decomposition for part ci develop an algorithm for solving the problem. Include this algorithm in your solution document, and also write down your PI and the individual number that you have obtained via Steps from your PI
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.
You should aim to use only the Python features that are introduced in the module. If you decide to use techniques or language features that TM does not cover, you must give a justification for your decisions, otherwise marks will be lost.
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