// Numbas version: exam_results_page_options {"name": "the rate of return", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "functions": {}, "parts": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "variableReplacements": [], "type": "gapfill", "showCorrectAnswer": true, "showFeedbackIcon": true, "useCustomName": false, "scripts": {}, "marks": 0, "sortAnswers": false, "customName": "", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "prompt": "

An investment of $\\$\\var{c0}$ is made and $\\var{years}$ years later it is worth $\\$\\var{c1}$. What was the rate of return?

\n

\n

[[0]] $\\%$ (to 2 decimal places)

", "gaps": [{"unitTests": [], "maxValue": "r", "showPrecisionHint": false, "variableReplacements": [], "type": "numberentry", "showFeedbackIcon": true, "precisionMessage": "You have not given your answer correct to two decimal places.", "marks": 1, "allowFractions": false, "minValue": "r", "customName": "", "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": 0, "useCustomName": false, "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "customMarkingAlgorithm": "", "strictPrecision": false, "precisionType": "dp", "precision": "2"}]}], "advice": "

We are asked to find the interest rate using simple interest. Therefore we would use the equation

\n

$\\displaystyle r=\\frac{c_1-c_0}{c_0}$

\n

where $r$ is the rate of return, $c_1$ is the final value of the investment and $c_0$ is the initial value of the investment.

\n

\n

In our situation we have, 

\n

$\\displaystyle r=\\frac{\\var{c1}-\\var{c0}}{\\var{c0}}$

\n

\n

Calculating this we find

\n

$\\begin{align}r&\\approx\\var{rdec}\\\\&=\\var{rrounded}\\%\\text{        (to 2 decimal places)}\\end{align}$

", "extensions": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "Financial maths questions. Determine the rate of return of an investment."}, "ungrouped_variables": ["years", "c0", "c1", "rdec", "r", "rrounded"], "name": "the rate of return", "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "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": {}, "preamble": {"css": "", "js": ""}, "variables": {"c1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "c1", "definition": "c0+random(500..c0/2#100)"}, "rdec": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "rdec", "definition": "(c1-c0)/c0"}, "rrounded": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "rrounded", "definition": "precround(r,2)"}, "r": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "r", "definition": "rdec*100"}, "years": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "years", "definition": "random(2..5)"}, "c0": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "c0", "definition": "random(2000..10000#200)"}}, "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/"}]}