// Numbas version: exam_results_page_options {"name": "future value - ordinary annuity", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "functions": {}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "Financial maths. Future value of an ordinary annuity."}, "rulesets": {}, "tags": [], "ungrouped_variables": ["years", "period", "ipadec", "ipa", "C", "n", "F", "Frounded"], "parts": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "marks": 0, "customMarkingAlgorithm": "", "customName": "", "gaps": [{"variableReplacementStrategy": "originalfirst", "precisionMessage": "You have not given your answer to the nearest cent.", "showPrecisionHint": false, "correctAnswerFraction": false, "minValue": "F", "precisionPartialCredit": 0, "type": "numberentry", "useCustomName": false, "precisionType": "dp", "variableReplacements": [], "scripts": {}, "marks": 1, "unitTests": [], "precision": "2", "customName": "", "correctAnswerStyle": "plain", "showCorrectAnswer": true, "mustBeReducedPC": 0, "strictPrecision": true, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "maxValue": "F", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "mustBeReduced": false, "allowFractions": false}], "showCorrectAnswer": true, "sortAnswers": false, "prompt": "

Suppose you are given $\\$\\var{C}$ at the end of each {period[2]} for $\\var{years}$ years. If the interest rate is $\\var{ipa}\\%$ per annum compounding {period[0]}, what is this cash flow worth at the end of the $\\var{years}$ years?

\n

\n

$\\$$ [[0]] (to the nearest cent)

", "extendBaseMarkingAlgorithm": true, "type": "gapfill", "useCustomName": false, "showFeedbackIcon": true, "variableReplacements": [], "scripts": {}}], "preamble": {"css": "", "js": ""}, "variables": {"ipa": {"group": "Ungrouped variables", "description": "", "definition": "ipadec*100", "name": "ipa", "templateType": "anything"}, "period": {"group": "Ungrouped variables", "description": "", "definition": "random([random('yearly','annually'),1,'year'],[random('half-yearly','semiannually'),2,'half-year'],['quarterly', 4, 'quarter'],['monthly',12,'month'],['daily', 365,'day'])", "name": "period", "templateType": "anything"}, "F": {"group": "Ungrouped variables", "description": "", "definition": "(C*period[1]/ipadec)*((1+ipadec/period[1])^(n)-1)", "name": "F", "templateType": "anything"}, "C": {"group": "Ungrouped variables", "description": "", "definition": "if(period[1]=365,random(1..10),random(20..300#10))", "name": "C", "templateType": "anything"}, "n": {"group": "Ungrouped variables", "description": "", "definition": "years*period[1]", "name": "n", "templateType": "anything"}, "years": {"group": "Ungrouped variables", "description": "", "definition": "random(3..20)", "name": "years", "templateType": "anything"}, "ipadec": {"group": "Ungrouped variables", "description": "", "definition": "random(0.02..0.10#0.001)", "name": "ipadec", "templateType": "anything"}, "Frounded": {"group": "Ungrouped variables", "description": "", "definition": "precround(F,2)", "name": "Frounded", "templateType": "anything"}}, "statement": "

If you are unsure of how to do a question, click on Reveal answers to see the full working. Then, once you understand how to do the question, click on Try another question like this one to start again. Do each question repeatedly to ensure you have mastered it.

", "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

You are asked to find the future value of an ordinary annuity (since the payments are at the end of each period). Therefore we will use the future value of an ordinary annuity formula

\n

$\\displaystyle F=\\frac{C}{i}\\left((1+i)^n-1\\right)$

\n

where $F$ is the future value, $C$ is the cash flow per period, $i$ is the interest rate per period, and $n$ is the number of periods.

\n

In our situation we have,

\n

$C=\\var{C}$,

\n

$i=\\frac{\\var{ipa}\\%}{\\var{period[1]}}=\\frac{\\var{ipadec}}{\\var{period[1]}}$, $i=\\var{ipa}\\%=\\var{ipadec}$,

\n

$n=\\var{years}\\times \\var{period[1]}=\\var{n}$, $n=\\var{n}$,

\n

and therefore we have

\n

$\\displaystyle F=\\frac{\\var{C}}{\\left(\\simplify[unitDenominator]{{ipadec}/{period[1]}}\\right)}\\left(\\left(1+\\simplify[unitDenominator]{{ipadec}/{period[1]}}\\right)^\\var{n}-1\\right)$

\n

Calculating this we find 

\n

$\\begin{align}F&\\approx \\var{F}\\\\&=\\$\\var{Frounded}\\quad \\text{(to the nearest cent)}\\end{align}$

", "extensions": [], "name": "future value - ordinary annuity", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}