// Numbas version: finer_feedback_settings {"name": "Net Present Value", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["Invest", "Return1", "perc", "int", "NPV", "n1", "num"], "name": "Net Present Value", "tags": ["present value", "rebel", "Rebel", "REBEL", "rebelmaths"], "advice": "
We wish to calculate the present value of an investment that will be worth €$\\var{Return1}$ in $\\var{n1}$ years time. Using the present value formula:
\n$P=\\frac{A}{(1+i)^{n}}$
\nwhere $A$ is €$\\var{Return1}$, $n$ is $\\var{n1}$ and $i$ is $\\frac{\\var{perc}}{100}=\\var{int}$ gives:
\n$P=\\frac{\\var{Return1}}{(1+\\var{int})^{\\var{n}}}$
\n$P=\\frac{\\var{Return1}}{\\var{num}}$
\n$P=\\var{NPV}$
\n\n", "rulesets": {}, "parts": [{"prompt": "Calculate the present value of the investment given that the discount rate is $\\var{perc}$% per annum.
\n\n€[[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "NPV+0.1", "minValue": "NPV-0.1", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "5", "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "An investment will give a return of €$\\var{Return1}$ in $\\var{n1}$ years time.
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"perc": {"definition": "random(2..7#0.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "perc", "description": ""}, "int": {"definition": "perc/100", "templateType": "anything", "group": "Ungrouped variables", "name": "int", "description": ""}, "Invest": {"definition": "random(50000..150000#20000)", "templateType": "anything", "group": "Ungrouped variables", "name": "Invest", "description": ""}, "Return1": {"definition": "siground(Invest*(1+int+0.01)^n1,4)", "templateType": "anything", "group": "Ungrouped variables", "name": "Return1", "description": ""}, "num": {"definition": "(1+int)^n1", "templateType": "anything", "group": "Ungrouped variables", "name": "num", "description": ""}, "n1": {"definition": "random(3..5#1)", "templateType": "anything", "group": "Ungrouped variables", "name": "n1", "description": ""}, "NPV": {"definition": "precround(Return1/(1+int)^n1,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "NPV", "description": ""}}, "metadata": {"description": "An investment of €x invested today will give a return of €y in n years time Calculate the net present value (NPV) of the investment given that the discount rate is 3.5% per annum.
\nrebelmaths
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "resources": []}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}