// Numbas version: exam_results_page_options {"name": "Compound interest from formula", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Compound interest from formula", "tags": [], "metadata": {"description": "

Students are given a formula for compound interest and asked to evaluate it for given initial investment values.

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

A formula for compound interest is given by: $V = I \\times (1+A)^t$,

\n

where

\n

$V$ is the value of the investment after $t$ years,

\n

$A$ is the interest rate per annum,

\n

$I$ is the amount invested.

", "advice": "

We need to calculate $ \\var{principal} \\times  (1 + \\var{rate})^\\var{years} = $ {answer}

\n

This is an exponentially increasing function.

", "rulesets": {}, "extensions": ["geogebra"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"years": {"name": "years", "group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}, "rate": {"name": "rate", "group": "Ungrouped variables", "definition": "random(1..10)/100", "description": "", "templateType": "anything", "can_override": false}, "principal": {"name": "principal", "group": "Ungrouped variables", "definition": "random(1..10)*1000", "description": "", "templateType": "anything", "can_override": false}, "edef": {"name": "edef", "group": "Ungrouped variables", "definition": "[\n ['k',principal],['a',1+rate],['b',1],['c',0],['minx',0],['maxx',10],['miny',principal-200],['maxy',principal*(1+rate)^10+100]\n ]", "description": "", "templateType": "anything", "can_override": false}, "edef2": {"name": "edef2", "group": "Ungrouped variables", "definition": "[\n ['k',principal],['a',1+rate],['b',-1],['c',0],['minx',0],['maxx',10],['miny',principal*(1+rate)^(-10)-100],['maxy',principal+200]\n ]", "description": "", "templateType": "anything", "can_override": false}, "ldef": {"name": "ldef", "group": "Ungrouped variables", "definition": "[\n ['a',100],['b',principal],['minx',0],['maxx',10],['miny',principal-200],['maxy',principal+2000]\n ]", "description": "", "templateType": "anything", "can_override": false}, "ldef2": {"name": "ldef2", "group": "Ungrouped variables", "definition": "[\n ['a',-100],['b',principal],['minx',0],['maxx',10],['miny',principal-2000],['maxy',principal+200]\n ]", "description": "", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "currency(principal * (1+rate)^years,\"$\",\"\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["years", "rate", "principal", "edef", "edef2", "ldef", "ldef2", "answer"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Compute the value of an investment after {years} years if \\${principal} is invested at an interest rate of {rate}.

\n

Give your answer in dollars and cents. Only enter the number; do not include the dollar sign in your answer.

", "minValue": "{principal * (1+rate)^years}", "maxValue": "{principal * (1+rate)^years}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "1_n_2", "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": "

Which type of curve best represents the value $V$ of this investment over time?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{geogebra_applet('https://www.geogebra.org/m/ed9uzmve',edef)}", "{geogebra_applet('https://www.geogebra.org/m/ed9uzmve',edef2)}", "{geogebra_applet('https://www.geogebra.org/m/wma7gdyz',ldef)}", "{geogebra_applet('https://www.geogebra.org/m/wma7gdyz',ldef2)}"], "matrix": ["1", 0, 0, 0], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}