// Numbas version: exam_results_page_options {"name": "Logarithms and Exponentials: Applications 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Logarithms and Exponentials: Applications 1", "tags": [], "metadata": {"description": "

Calculating the amount of money in a savings account after a given amount of time, and calculating how long it will take for the amount of savings to exceed a given value. 

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

A savings account gives $\\var{int}\\%$ interest per year. The amount of money in the account is modelled as $S=£\\var{start} \\times \\var{1+int/100}^t$, where $t$ is the number of years. Interest is paid into the account monthly. 

", "advice": "

Part a:

\n

To calculate how much money will be in the savings account after a certain amount of time, we substitute the amount of time for $t$ in the equation \\[ S =£\\var{start} \\times \\var{1+int/100}^t .\\]

\n

For 6 months, $t=0.5$, therefore \\[ \\begin{split} S &\\,= £\\var{start} \\times \\var{1+int/100}^{0.5} \\\\ &\\,= £\\var{sol1} \\,.\\end{split} \\]

\n

For 1 year:

\n

\\[ \\begin{split} S &\\,= £\\var{start} \\times \\var{1+int/100} \\\\ &\\,= £\\var{sol2} \\,.\\end{split} \\]

\n

For $\\var{n}$ years:

\n

\\[ \\begin{split} S &\\,= £\\var{start} \\times \\var{1+int/100}^\\var{n} \\\\ &\\,= £\\var{sol3} \\,. \\end{split} \\]

\n

\n

Part b:

\n

To find out how long it will take for the amount of savings to exceed $£\\var{target}$, we need to solve the inequality \\[ \\var{start} \\times \\var{1+int/100}^t > \\var{target} \\] for $t$:

\n

\\[ \\begin{split} \\var{start} \\times \\var{1+int/100}^t\\, &\\,> \\var{target} \\\\ \\var{1+int/100}^t &\\,> \\var{target/start} \\\\ t \\log(\\var{1+int/100}) &\\,> \\log(\\var{target/start}) \\\\t &\\,> \\frac{\\log(\\var{target/start})}{\\log(\\var{1+int/100})}  \\qquad \\text{(Be careful when rearranging inequalities. Since $\\log(\\var{1+int/100})>0$, this will not change the inequality in this case.)} \\\\ t &\\,> \\var{tt2} \\text{ years (2 d.p.)}\\,.\\end{split} \\] 

\n

Since $\\var{tt2}$ years is equivalent to $\\var{yt}$ years and $\\var{mt}$ months, it will take $\\var{answer[0]}$ years and $\\var{answer[1]}$ {grammar} for the savings to exceed $£\\var{target}$.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"start": {"name": "start", "group": "Ungrouped variables", "definition": "random(300..800 #50)", "description": "", "templateType": "anything", "can_override": false}, "int": {"name": "int", "group": "Ungrouped variables", "definition": "random(4..7)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(3..6)", "description": "", "templateType": "anything", "can_override": false}, "target": {"name": "target", "group": "Ungrouped variables", "definition": "start*random(1.5 ..2 #0.1)", "description": "", "templateType": "anything", "can_override": false}, "sol1": {"name": "sol1", "group": "Ungrouped variables", "definition": "precround(start*(1+int/100)^0.5,2)", "description": "", "templateType": "anything", "can_override": false}, "sol2": {"name": "sol2", "group": "Ungrouped variables", "definition": "precround(start*(1+int/100)^1,2)", "description": "", "templateType": "anything", "can_override": false}, "sol3": {"name": "sol3", "group": "Ungrouped variables", "definition": "precround(start*(1+int/100)^n,2)", "description": "", "templateType": "anything", "can_override": false}, "yt": {"name": "yt", "group": "Ungrouped variables", "definition": "floor(tt)", "description": "", "templateType": "anything", "can_override": false}, "mt": {"name": "mt", "group": "Ungrouped variables", "definition": "precround((tt2-yt)*12,2)", "description": "", "templateType": "anything", "can_override": false}, "tt": {"name": "tt", "group": "Ungrouped variables", "definition": "log(target/start)/log(1+int/100)", "description": "", "templateType": "anything", "can_override": false}, "tt2": {"name": "tt2", "group": "Ungrouped variables", "definition": "precround(tt,2)", "description": "", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "[if(mt>11, yt+1,yt),if(mt>11,0,if(floor(mt)=round(mt),round(mt)+1,round(mt)))]", "description": "", "templateType": "anything", "can_override": false}, "grammar": {"name": "grammar", "group": "Ungrouped variables", "definition": "if({answer[1]=1,'month','months')", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["start", "int", "n", "target", "sol1", "sol2", "sol3", "yt", "mt", "tt", "tt2", "answer", "grammar"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the total amount in the savings account after:

\n

6 months: £[[0]]

\n

1 year: £[[1]]

\n

$\\var{n}$ years: £[[2]]

\n

Give your answers to the nearest penny.

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sol1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sol2}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sol3}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

How long will it take, in years and months, for the savings in the account to exceed $£\\var{target}$?

\n

Years:[[0]]

\n

Months:[[1]]

\n

\n

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{answer[0]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{answer[1]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}