// Numbas version: exam_results_page_options {"name": "Savings compound interest 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"ratio": {"name": "ratio", "group": "Ungrouped variables", "definition": "A/P", "description": "", "templateType": "anything"}, "perc": {"name": "perc", "group": "Ungrouped variables", "definition": "random(1.5..5.5 #0.5)", "description": "", "templateType": "anything"}, "A": {"name": "A", "group": "Ungrouped variables", "definition": "precround(P*(1+int)^n,2)", "description": "", "templateType": "anything"}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..6 #1)", "description": "", "templateType": "anything"}, "intplus": {"name": "intplus", "group": "Ungrouped variables", "definition": "ratio^(1/n)", "description": "", "templateType": "anything"}, "int": {"name": "int", "group": "Ungrouped variables", "definition": "perc/100", "description": "", "templateType": "anything"}, "P": {"name": "P", "group": "Ungrouped variables", "definition": "random(1000..6000 #500)", "description": "", "templateType": "anything"}}, "rulesets": {}, "showQuestionGroupNames": false, "ungrouped_variables": ["n", "P", "A", "perc", "int", "ratio", "intplus"], "variablesTest": {"condition": "", "maxRuns": 100}, "extensions": [], "name": "Savings compound interest 2", "parts": [{"prompt": "

What is the value of P?

\n

€[[0]]

", "gaps": [{"allowFractions": false, "correctAnswerFraction": false, "showPrecisionHint": false, "maxValue": "P+0.0001", "scripts": {}, "variableReplacementStrategy": "originalfirst", "minValue": "P-0.0001", "variableReplacements": [], "marks": 1, "type": "numberentry", "showCorrectAnswer": true}], "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "type": "gapfill", "showCorrectAnswer": true}, {"prompt": "

What is the value of A?

\n

€[[0]]

", "gaps": [{"allowFractions": false, "correctAnswerFraction": false, "showPrecisionHint": false, "maxValue": "A+0.0001", "scripts": {}, "variableReplacementStrategy": "originalfirst", "minValue": "A-0.0001", "variableReplacements": [], "marks": 1, "type": "numberentry", "showCorrectAnswer": true}], "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "type": "gapfill", "showCorrectAnswer": true}, {"prompt": "

What is the value of n?

\n

\n

[[0]]

", "gaps": [{"allowFractions": false, "correctAnswerFraction": false, "showPrecisionHint": false, "maxValue": "n+0.0001", "scripts": {}, "variableReplacementStrategy": "originalfirst", "minValue": "n-0.0001", "variableReplacements": [], "marks": 1, "type": "numberentry", "showCorrectAnswer": true}], "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "type": "gapfill", "showCorrectAnswer": true}, {"prompt": "

What is the interest rate per annum?

\n

Please give your answer as a percentage correct to 2 decimal places.

\n

\n

[[0]]%

", "gaps": [{"allowFractions": false, "correctAnswerFraction": false, "showPrecisionHint": false, "maxValue": "perc+0.02", "scripts": {}, "variableReplacementStrategy": "originalfirst", "minValue": "perc-0.02", "variableReplacements": [], "marks": "3", "type": "numberentry", "showCorrectAnswer": true}], "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "type": "gapfill", "showCorrectAnswer": true}], "question_groups": [{"name": "", "pickQuestions": 0, "pickingStrategy": "all-ordered", "questions": []}], "variable_groups": [], "advice": "

The compound interest formula is: $\\ A = P(1+i)^n $

\n

Part (a)

\n

P represents the principal sum invested , so in this example it is €$\\var{P}$.

\n

Part (b)

\n

A represents the amount in the deposit account after $\\var{n}$ years, so in this example it is €$\\var{A}$.

\n

Part (c)

\n

n represents the number of compounding periods , so in this example it is $\\var{n}$ years.

\n

Part(d)

\n

Using the compound interest formula:

\n

$A=P(1+i)^n$

\n

$\\var{A}=\\var{P}(1+i)^\\var{n}$

\n

We need to rearrange the equation to find the value of $i$.

\n

$\\frac{\\var{A}}{\\var{P}}=(1+i)^\\var{n}$

\n

$\\var{ratio}=(1+i)^\\var{n}$

\n

$\\sqrt[\\var{n}]{\\var{ratio}}=1+i$

\n

$\\var{intplus}=1+i$

\n

$i=\\var{int}$ so the annual interest rate is $\\var{perc}$%.

", "metadata": {"description": "

Calculate the annual interest rate for a savings account where A, P and n are given.

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"css": "", "js": ""}, "tags": ["rebel", "Rebel", "REBEL", "rebelmaths"], "functions": {}, "statement": "

A lump sum of €$\\var{P}$ is deposited into a savings account that pays compound interest for $\\var{n}$ years. If no withdrawals are made from the account, then the amount that the lump sum will have grown to is €$\\var{A}$.

\n

The compound interest formula is:

\n

$\\ A = P(1+i)^n $

", "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}