// Numbas version: exam_results_page_options {"name": "Modelling 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": 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

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