// Numbas version: finer_feedback_settings {"name": "present value - compound interest", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "parts": [{"showCorrectAnswer": true, "customMarkingAlgorithm": "", "gaps": [{"maxValue": "P", "precision": "2", "customMarkingAlgorithm": "", "minValue": "P", "useCustomName": false, "variableReplacements": [], "showFeedbackIcon": true, "unitTests": [], "precisionType": "dp", "mustBeReducedPC": 0, "customName": "", "scripts": {}, "precisionPartialCredit": 0, "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "showCorrectAnswer": true, "strictPrecision": false, "correctAnswerStyle": "plain", "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "showPrecisionHint": false, "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": false, "marks": 1, "precisionMessage": "You have not given your answer to the nearest cent.", "allowFractions": false}], "type": "gapfill", "variableReplacements": [], "showFeedbackIcon": true, "unitTests": [], "customName": "", "prompt": "
How much would you need to put away at $\\var{ipa}\\%$ per annum compounded {period[0]} in order to have $\\$\\var{S}$ after $\\var{years}$ years?
\n\n$\\$\\,$[[0]] (to the nearest cent)
", "scripts": {}, "extendBaseMarkingAlgorithm": true, "useCustomName": false, "marks": 0, "variableReplacementStrategy": "originalfirst", "sortAnswers": false}], "extensions": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"n": {"description": "", "name": "n", "templateType": "anything", "group": "Ungrouped variables", "definition": "years*period[1]"}, "ipa": {"description": "interest per annum as a percentage (add the symbol afterwards)
", "name": "ipa", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..7#0.1)"}, "period": {"description": "", "name": "period", "templateType": "anything", "group": "Ungrouped variables", "definition": "random([random('half-yearly','semiannually'),2],['quarterly', 4],['monthly',12],['daily', 365])"}, "ipadec": {"description": "", "name": "ipadec", "templateType": "anything", "group": "Ungrouped variables", "definition": "ipa/100"}, "P": {"description": "present value
", "name": "P", "templateType": "anything", "group": "Ungrouped variables", "definition": "S/(1+ippdec)^n"}, "ipp": {"description": "interest per period, only use for debugging, use fractions in display and calculations.
", "name": "ipp", "templateType": "anything", "group": "Ungrouped variables", "definition": "ipa/period[1]"}, "years": {"description": "", "name": "years", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..15)"}, "S": {"description": "", "name": "S", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(1000..100000#1000)\n"}, "ippdec": {"description": "", "name": "ippdec", "templateType": "anything", "group": "Ungrouped variables", "definition": "ipp/100"}, "Prounded": {"description": "", "name": "Prounded", "templateType": "anything", "group": "Ungrouped variables", "definition": "precround(S/(1+ippdec)^n,2)"}}, "variable_groups": [], "functions": {}, "metadata": {"description": "Using interest compounded at common time intervals (except yearly) determine the present value", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "ungrouped_variables": ["P", "Prounded", "years", "period", "n", "ipa", "ipadec", "ipp", "ippdec", "S"], "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.
", "rulesets": {}, "advice": "We are asked to find the present value using compound interest. Therefore we will use the equation
\n$\\displaystyle P=\\frac{S}{(1+i)^n}$,
\nwhere $S$ is the future value, $P$ is the present value, $i$ is the interest rate per time period and $n$ is the number of time periods.
\nIn our situation we have,
\n$S=\\$\\var{S}$,
\n$i=\\frac{\\var{ipa}\\%}{\\var{period[1]}}=\\simplify[unitDenominator]{{ipadec}/{period[1]}}$,
\n$n=\\var{years}\\times\\var{period[1]}=\\var{n}$,
\nand therefore
\n$\\begin{align}P&=\\simplify[simplifyFractions, unitDenominator]{{S}/(1+({ipadec}/{period[1]}))^{n}}\\\\&=\\$ \\var{Prounded} \\text{ (to the nearest cent)}\\end{align}$
", "preamble": {"js": "", "css": ""}, "name": "present value - compound interest", "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}