// Numbas version: exam_results_page_options {"name": "Simple and Compound Interest", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["capital", "interest", "z", "n", "ci", "si"], "name": "Simple and Compound Interest", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "\n

The general formula for the total amount after interest is earned is given by:

\n

$C(1+ni)=Z$

\n

where:

\n\n

Re-arranging this formula to make $i$ the subject of the formula, you get:

\n

$i={({1 \\over n})}{({Z \\over C}}-1)={Z-C \\over nC}$

\n

In this question:

\n\n\n

An capital $C$ lent over a period of $n$ years at an interest rate $i$ grows to

\n

$C(1+i)^n=Z$

\n

where $Z$ is the capital +interest earned.

\n

Re-arranging this formula to make $i$ the subject of the formula gives:

\n

\n

\n

$i=({Z \\over C})^{1 \\over n}-1$

\n

In this question:

\n\n

\n

Substituting these value into the above equations will give the simple and compound interest rates.

\n

\n

", "rulesets": {}, "parts": [{"precisionType": "dp", "prompt": "

simple interest is used?

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{si}", "strictPrecision": true, "minValue": "{si}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": "50", "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "prompt": "

compound interest is used?

", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ci}", "strictPrecision": true, "minValue": "{ci}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": "50", "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}], "extensions": [], "statement": "

What is the interest rate (% to two decimal places) if the capital is £{capital} and the interest earned is £{interest} over a period of {n} years if:

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"ci": {"definition": "(((({interest}+{capital})/{capital})^(1/n))-1)*100", "templateType": "anything", "group": "Ungrouped variables", "name": "ci", "description": ""}, "n": {"definition": "random(2..10#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "n", "description": ""}, "si": {"definition": "(((({interest}+{capital})/{capital})-1)/n)*100", "templateType": "anything", "group": "Ungrouped variables", "name": "si", "description": ""}, "interest": {"definition": "random(50..200#15)", "templateType": "randrange", "group": "Ungrouped variables", "name": "interest", "description": ""}, "capital": {"definition": "random(100..800#50)", "templateType": "randrange", "group": "Ungrouped variables", "name": "capital", "description": ""}, "z": {"definition": "{capital}+{interest}", "templateType": "anything", "group": "Ungrouped variables", "name": "z", "description": ""}}, "metadata": {"description": "

Checking your knowledge of simple and compound interest

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}]}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}