// Numbas version: exam_results_page_options {"name": "Interest rate - simple interest", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"showFeedbackIcon": true, "gaps": [{"showFeedbackIcon": true, "marks": 1, "customMarkingAlgorithm": "", "allowFractions": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "minValue": "ipa", "variableReplacements": [], "useCustomName": false, "maxValue": "ipa", "precision": "2", "correctAnswerFraction": false, "precisionPartialCredit": 0, "strictPrecision": false, "correctAnswerStyle": "plain", "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "precisionType": "dp", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showPrecisionHint": false, "customName": "", "mustBeReducedPC": 0, "precisionMessage": "You have not given your answer to 2 decimal places.", "scripts": {}}], "marks": 0, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "useCustomName": false, "prompt": "

You deposit $\\$\\var{P}$ into a bank account. After $\\var{n}$ {period[0]} you have saved up $\\$\\var{S}$. Calculate the rate of simple interest per annum that you have earnt on your deposit.

\n

\n

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

", "unitTests": [], "customName": "", "type": "gapfill", "scripts": {}, "sortAnswers": false}], "tags": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "Using simple interest determine the interest rate"}, "rulesets": {}, "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"period": {"description": "", "templateType": "anything", "name": "period", "group": "Ungrouped variables", "definition": "random(['quarters', 4],['months',12],['days', 365])"}, "ipadec": {"description": "", "templateType": "anything", "name": "ipadec", "group": "Ungrouped variables", "definition": "int/(P*n/period[1])"}, "n": {"description": "", "templateType": "anything", "name": "n", "group": "Ungrouped variables", "definition": "random(5..40)"}, "int": {"description": "", "templateType": "anything", "name": "int", "group": "Ungrouped variables", "definition": "precround(P*n/period[1]*random(0.03..0.10#0.0001),2)"}, "S": {"description": "", "templateType": "anything", "name": "S", "group": "Ungrouped variables", "definition": "P+int"}, "iparounded": {"description": "

interest per annum as a percentage (add the symbol afterwards)

", "templateType": "anything", "name": "iparounded", "group": "Ungrouped variables", "definition": "precround(ipadec*100,2)"}, "P": {"description": "

present value

", "templateType": "anything", "name": "P", "group": "Ungrouped variables", "definition": "random(1000..100000#1000)"}, "ipa": {"description": "", "templateType": "anything", "name": "ipa", "group": "Ungrouped variables", "definition": "ipadec*100"}}, "preamble": {"css": "", "js": ""}, "extensions": [], "advice": "

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

\n

$I=Ptr$,

\n

where $I$ is the interest amount, $P$ is the present value, $r$ is the interest rate per annum and $t$ is the time in years.

\n

Note, $I$, the interest amount, will be the difference between the future value and the present value. 

\n

\n

In our situation we have,

\n

$I=\\var{S}-\\var{P}=\\var{int}$,

\n

$P=\\var{P}$,

\n

$t=\\frac{\\var{n}}{\\var{period[1]}}$, 

\n

and therefore we have

\n

$\\displaystyle \\var{int}=\\var{P}\\times \\frac{\\var{n}}{\\var{period[1]}}\\times r$

\n

which we need to rearrange to solve for $r$.

\n

\n

We want to get $r$ by itself. We can do this by dividing both sides by $\\var{P}\\times \\frac{\\var{n}}{\\var{period[1]}}$ (in order to remove the multiplication by $\\var{P}\\times \\frac{\\var{n}}{\\var{period[1]}}$)

\n

$\\displaystyle \\frac{\\var{int}}{\\var{P}\\times \\frac{\\var{n}}{\\var{period[1]}}}=r$

\n

Calculating this we find 

\n

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

", "ungrouped_variables": ["P", "int", "S", "period", "n", "ipadec", "ipa", "iparounded"], "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.

", "variable_groups": [], "name": "Interest rate - simple interest", "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/"}]}