// Numbas version: finer_feedback_settings {"name": "Simon's copy of Savings compound interest 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
Calculate the annual interest rate for a savings account where A, P and n are given.
\nrebelmaths
"}, "ungrouped_variables": ["n", "P", "A", "perc", "int", "ratio", "intplus"], "variablesTest": {"maxRuns": 100, "condition": ""}, "variable_groups": [], "functions": {}, "advice": "The compound interest formula is: $\\ A = P(1+r)^n $
\n\n
(a)
\n$P$ represents the principal sum invested, so in this example it is €$\\var{P}$.
\n\n
(b)
\n$A$ represents the amount in the deposit account after $\\var{n}$ years, so in this example it is €$\\var{A}$.
\n\n
(c)
\n$n$ represents the number of compounding periods, so in this example it is $\\var{n}$ years.
\n\n
(d)
\nUsing the compound interest formula:
\n$A=P(1+r)^n$
\n$\\var{A}=\\var{P}(1+r)^\\var{n}$
\nWe need to rearrange the equation to find the value of $r$.
\n$\\frac{\\var{A}}{\\var{P}}=(1+r)^\\var{n}$
\n$\\var{ratio}=(1+r)^\\var{n}$
\n$\\sqrt[\\var{n}]{\\var{ratio}}=1+r$
\n$\\var{intplus}=1+r$
\n$r=\\var{int}$ so multiplying by 100 gives the annual interest rate as a percentage is $\\var{perc}$%.
", "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}$.
\nThe compound interest formula is:
\n$\\ A = P(1+r)^n $
", "parts": [{"useCustomName": false, "sortAnswers": false, "marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "customName": "", "prompt": "What is the value of $P$?
\n€[[0]]
", "showFeedbackIcon": true, "gaps": [{"useCustomName": false, "allowFractions": false, "minValue": "P", "marks": 1, "customMarkingAlgorithm": "", "scripts": {}, "maxValue": "P", "customName": "", "showFractionHint": true, "showFeedbackIcon": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "correctAnswerFraction": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}], "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill"}, {"useCustomName": false, "sortAnswers": false, "marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "customName": "", "prompt": "What is the value of $A$?
\n€[[0]]
", "showFeedbackIcon": true, "gaps": [{"useCustomName": false, "allowFractions": false, "minValue": "A", "marks": 1, "customMarkingAlgorithm": "", "scripts": {}, "maxValue": "A", "customName": "", "showFractionHint": true, "showFeedbackIcon": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "correctAnswerFraction": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}], "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill"}, {"useCustomName": false, "sortAnswers": false, "marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "customName": "", "prompt": "What is the value of $n$?
\n\n
[[0]]
", "showFeedbackIcon": true, "gaps": [{"useCustomName": false, "allowFractions": false, "minValue": "n", "marks": 1, "customMarkingAlgorithm": "", "scripts": {}, "maxValue": "n", "customName": "", "showFractionHint": true, "showFeedbackIcon": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "correctAnswerFraction": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReducedPC": 0}], "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill"}, {"useCustomName": false, "sortAnswers": false, "marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "customName": "", "prompt": "What is the interest rate per annum?
\nPlease give your answer as a percentage correct to 1 decimal place.
\n\n[[0]]%
", "showFeedbackIcon": true, "gaps": [{"customMarkingAlgorithm": "", "customName": "", "showPrecisionHint": false, "marks": "3", "notationStyles": ["plain", "en", "si-en"], "minValue": "perc", "precisionPartialCredit": 0, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "useCustomName": false, "allowFractions": false, "scripts": {}, "maxValue": "perc", "precisionMessage": "You have not given your answer to the correct precision.", "precision": "1", "showFeedbackIcon": true, "precisionType": "dp", "correctAnswerFraction": false, "strictPrecision": false, "unitTests": [], "correctAnswerStyle": "plain", "type": "numberentry"}], "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill"}], "tags": [], "variables": {"perc": {"name": "perc", "definition": "random(1.5..5.5 #0.1)", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "int": {"name": "int", "definition": "perc/100", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "n": {"name": "n", "definition": "random(2..6 #1)", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "intplus": {"name": "intplus", "definition": "ratio^(1/n)", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "P": {"name": "P", "definition": "random(1000..6000 #500)", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "ratio": {"name": "ratio", "definition": "A/P", "templateType": "anything", "description": "", "group": "Ungrouped variables"}, "A": {"name": "A", "definition": "precround(P*(1+int)^n,2)", "templateType": "anything", "description": "", "group": "Ungrouped variables"}}, "name": "Simon's copy of Savings compound interest 2", "rulesets": {}, "preamble": {"css": "", "js": ""}, "extensions": [], "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}