// Numbas version: finer_feedback_settings {"name": "Discounting", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["value", "n", "interest"], "name": "Discounting", "tags": [], "advice": "

Discounting is the process of going back in time. In this example, £{value} is the future value and we want the present value of this i.e. the value that will give us £{value} when interest is earned.

\n

In order to get the present value, we need to use:

\n

$V(0)=V(n)v^n$

\n

where:

\n\n

As the interest rate that is quoted is the annual effective rate, the time must be in terms of years. So to change months into years, one must divide by 12.

\n

In the above question, we have:

\n\n

Substituting these values in to the equation gives the present/discounted value.

\n

", "rulesets": {}, "parts": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "scripts": {}, "precision": "2", "maxValue": "{value}/(1+{interest/100})^{n/12}", "minValue": "{value}/(1+{interest/100})^{n/12}", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": "50", "marks": "2", "type": "numberentry", "showPrecisionHint": false}], "statement": "

Compute the present value of a payment of £{value} due in {n} months on the basis of a compound interest rate of {interest}% per annum?

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"value": {"definition": "random(300..900#50)", "templateType": "randrange", "group": "Ungrouped variables", "name": "value", "description": ""}, "interest": {"definition": "random(1..8#0.25)", "templateType": "randrange", "group": "Ungrouped variables", "name": "interest", "description": ""}, "n": {"definition": "random(1..11#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "n", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Habiba Gora", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/494/"}]}]}], "contributors": [{"name": "Habiba Gora", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/494/"}]}