// Numbas version: exam_results_page_options {"name": "Coordinate Geometry - Linear Functions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Coordinate Geometry - Linear Functions", "advice": "", "extensions": [], "rulesets": {}, "functions": {"dollars": {"parameters": [["n", "number"]], "language": "jme", "type": "string", "definition": "currency(n,\"\u00a3\",\"d\")"}}, "tags": [], "metadata": {"description": "

This question is out of date: use the currency function instead.

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"customName": "", "useCustomName": false, "marks": 0, "extendBaseMarkingAlgorithm": true, "scripts": {}, "showFeedbackIcon": true, "gaps": [{"customName": "", "useCustomName": false, "marks": 1, "failureRate": 1, "extendBaseMarkingAlgorithm": true, "vsetRange": [0, 1], "checkingType": "absdiff", "scripts": {}, "showFeedbackIcon": true, "checkVariableNames": false, "unitTests": [], "type": "jme", "answer": "", "valuegenerators": [], "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "showPreview": true, "checkingAccuracy": 0.001, "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": ""}], "unitTests": [], "type": "gapfill", "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "prompt": "

{currency(m,\"\\$\",\"d\")}

\n

A plain pizza costs $\\$\\var{c}$ dollar and each topping costs {currency(m,\"\\$\",\"d\")}. Given that is the cost of the pizza and represents the number of toppings, write an equation that represents the cost of a pizza.

", "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": ""}], "statement": "

Use the currency function to format amounts of money.

\n

Plain text: {currency(m,\"\\$\",\"d\")}

\n

In TeX: $\\var{currency(a,\"£\",\"p\")} + \\var{currency(b,\"£\",\"p\")} = \\var{currency(a+b,\"£\",\"p\")}$

\n

\n

For convenience, you can define a custom function which uses your preferred prefix and suffix.

\n

Plain text: {pounds(a)}

\n

In TeX: $\\var{pounds(a)} + \\var{pounds(b)} = \\var{pounds(a+b)}$

", "variables": {"c": {"name": "c", "description": "", "templateType": "anything", "definition": "random(30..35)", "group": "Ungrouped variables"}, "m": {"name": "m", "description": "", "templateType": "anything", "definition": "random(2.5..3.5 #0.5)", "group": "Ungrouped variables"}}, "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "ungrouped_variables": ["m", "c"], "variable_groups": [], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "sean hunte", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3167/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "sean hunte", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3167/"}]}