// Numbas version: finer_feedback_settings {"name": "Modelling 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "statement": "

Suppose that today (year 0) your car is worth $\\var{a}$ euro. Each year your car loses $\\var{b}$% of its value, but at the end of each year, you add customisations to your car which increase its value by $\\var{c}$ euro. 

", "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "variables": {"c": {"name": "c", "definition": "random(50,60,70,80,90,100)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "b": {"name": "b", "definition": "random(8..12)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a": {"name": "a", "definition": "random(8000,9000,10000,11000,12000, 13000,14000,15000)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "tags": [], "name": "Modelling 3", "ungrouped_variables": ["a", "b", "c"], "metadata": {"licence": "None specified", "description": ""}, "advice": "", "functions": {}, "variable_groups": [], "parts": [{"customName": "", "showCorrectAnswer": true, "scripts": {}, "type": "gapfill", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "marks": 0, "prompt": "

What is the value of the car after 1 year? [[0]]

\n

What is the value of the car after 2 years? [[1]]

\n

What is the value of the car after 3 years? [[2]]

\n

", "gaps": [{"valuegenerators": [], "scripts": {}, "customMarkingAlgorithm": "", "checkingType": "dp", "useCustomName": false, "showPreview": true, "marks": 1, "checkingAccuracy": "2", "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "variableReplacements": [], "answer": "{a}*{1-b/100}+{c}", "unitTests": [], "customName": "", "showCorrectAnswer": true, "vsetRange": [0, 1], "type": "jme", "checkVariableNames": false, "failureRate": 1, "extendBaseMarkingAlgorithm": true, "adaptiveMarkingPenalty": 0, "showFeedbackIcon": true}, {"valuegenerators": [], "scripts": {}, "customMarkingAlgorithm": "", "checkingType": "dp", "useCustomName": false, "showPreview": true, "marks": 1, "checkingAccuracy": "2", "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "variableReplacements": [], "answer": "({a}*{1-b/100}+{c})*{1-b/100}+{c}", "unitTests": [], "customName": "", "showCorrectAnswer": true, "vsetRange": [0, 1], "type": "jme", "checkVariableNames": false, "failureRate": 1, "extendBaseMarkingAlgorithm": true, "adaptiveMarkingPenalty": 0, "showFeedbackIcon": true}, {"valuegenerators": [], "scripts": {}, "customMarkingAlgorithm": "", "checkingType": "dp", "useCustomName": false, "showPreview": true, "marks": 1, "checkingAccuracy": "2", "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "variableReplacements": [], "answer": "(({a}*{1-b/100}+{c})*{1-b/100}+{c})*{1-b/100}+{c}", "unitTests": [], "customName": "", "showCorrectAnswer": true, "vsetRange": [0, 1], "type": "jme", "checkVariableNames": false, "failureRate": 1, "extendBaseMarkingAlgorithm": true, "adaptiveMarkingPenalty": 0, "showFeedbackIcon": true}], "useCustomName": false, "adaptiveMarkingPenalty": 0, "showFeedbackIcon": true, "variableReplacements": [], "unitTests": []}, {"customName": "", "showCorrectAnswer": true, "scripts": {}, "type": "gapfill", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "marks": 0, "prompt": "

Given the following recurrence relation for the value of the car after n years, find A, B and D:

\n

\\[C(n)=\\begin{cases}  A & if & n=0\\\\    C(n-1) - [C(n-1) \\times B] + D & if & n\\geq1 \\end{cases}\\]

\n

A = [[0]], B = [[1]] and D = [[2]].

", "gaps": [{"valuegenerators": [], "scripts": {}, "customMarkingAlgorithm": "", "checkingType": "absdiff", "useCustomName": false, "showPreview": true, "marks": 1, "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "variableReplacements": [], "answer": "{a}", "unitTests": [], "customName": "", "showCorrectAnswer": true, "vsetRange": [0, 1], "type": "jme", "checkVariableNames": false, "failureRate": 1, "extendBaseMarkingAlgorithm": true, "adaptiveMarkingPenalty": 0, "showFeedbackIcon": true}, {"valuegenerators": [], "scripts": {}, "customMarkingAlgorithm": "", "checkingType": "absdiff", "useCustomName": false, "showPreview": true, "marks": 1, "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "variableReplacements": [], "answer": "{b}/100", "unitTests": [], "customName": "", "showCorrectAnswer": true, "vsetRange": [0, 1], "type": "jme", "checkVariableNames": false, "failureRate": 1, "extendBaseMarkingAlgorithm": true, "adaptiveMarkingPenalty": 0, "showFeedbackIcon": true}, {"valuegenerators": [], "scripts": {}, "customMarkingAlgorithm": "", "checkingType": "absdiff", "useCustomName": false, "showPreview": false, "marks": 1, "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "variableReplacements": [], "answer": "{c}", "unitTests": [], "customName": "", "showCorrectAnswer": true, "vsetRange": [0, 1], "type": "jme", "checkVariableNames": false, "failureRate": 1, "extendBaseMarkingAlgorithm": true, "adaptiveMarkingPenalty": 0, "showFeedbackIcon": true}], "useCustomName": false, "adaptiveMarkingPenalty": 0, "showFeedbackIcon": true, "variableReplacements": [], "unitTests": []}], "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/"}]}