Activity 1¶
Due: Friday October 09th at 11:59 PM, via OWL (in the
Assignmentstab)Marking Scheme: act1_marking_scheme.txt
What you need to do¶
Build a function to compute compound interest given a starting amount(P), an annual interest rate (r), the number of compoundings per year (n) and the total number of years (t). Your function should return A, which is the value of the principle plus the interest after compounding. Use this formula:
Call your function with the following test values: P = 1000, r = 0.02, n=1, t=5. Print the resulting output.
What to submit (in zipped folder)¶
Your python file (
activity1.py)A text file with your output (
output.txt)