// Numbas version: finer_feedback_settings {"name": "Modelling 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b", "r"], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "
Suppose you borrow $\\var{a}$ euro from your friend John, but until you get a job you can't pay him back. Each week John charges you $\\var{r}$% interest on the amount you owe.
\n", "metadata": {"description": "", "licence": "None specified"}, "name": "Modelling 1", "rulesets": {}, "extensions": [], "functions": {}, "advice": "", "variables": {"r": {"description": "", "group": "Ungrouped variables", "name": "r", "templateType": "anything", "definition": "random(5..8)"}, "b": {"description": "", "group": "Ungrouped variables", "name": "b", "templateType": "anything", "definition": "random(10, 20, 30, 40, 50)"}, "a": {"description": "", "group": "Ungrouped variables", "name": "a", "templateType": "anything", "definition": "random(300, 400, 500, 600, 700)"}}, "parts": [{"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "prompt": "How much do you owe John after 1 week? [[0]]
\nHow much do you owe John after 2 weeks? [[1]]
", "unitTests": [], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": false, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "dp", "answer": "{a}*(1+{r}/100)", "checkingAccuracy": "2", "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}, {"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": false, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "dp", "answer": "{a}*(1+{r}/100)^2", "checkingAccuracy": "2", "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}], "type": "gapfill", "marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "sortAnswers": false}, {"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "prompt": "Given the following recurrence relation for the amount you owe after n weeks, find A and B:
\n\\[C(n)=\\begin{cases} A & if & n=0\\\\ C(n-1) + [C(n-1) \\times B] & if & n\\geq1 \\end{cases}\\]
\nA = [[0]] and B = [[1]]
", "unitTests": [], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "{a}", "checkingAccuracy": 0.001, "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}, {"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "{r}/100", "checkingAccuracy": 0.001, "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}], "type": "gapfill", "marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "sortAnswers": false}], "variable_groups": [], "tags": [], "preamble": {"js": "", "css": ""}, "type": "question", "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}]}], "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}