// Numbas version: exam_results_page_options {"name": "Portfolio Task 1 Q5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"d": {"templateType": "randrange", "group": "Ungrouped variables", "name": "d", "definition": "random(10..15#1)", "description": ""}, "b": {"templateType": "randrange", "group": "Ungrouped variables", "name": "b", "definition": "random(5..10#0.01)", "description": ""}, "a": {"templateType": "randrange", "group": "Ungrouped variables", "name": "a", "definition": "random(3..7#0.01)", "description": ""}, "c": {"templateType": "randrange", "group": "Ungrouped variables", "name": "c", "definition": "random(100..150#5)", "description": ""}}, "statement": "

A company sells two products, A and B.  A sells for $£\\var{a}$ and B sells for $£\\var{b}$.  No matter how many items they sell the company has costs of $£\\var{c}$.

", "variablesTest": {"maxRuns": 100, "condition": ""}, "ungrouped_variables": ["a", "b", "c", "d"], "parts": [{"extendBaseMarkingAlgorithm": true, "prompt": "

Write an equation to calculate the total income from sales.

\n

$Total\\; income=$

", "vsetRange": [0, 1], "expectedVariableNames": [], "type": "jme", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showPreview": true, "marks": 1, "failureRate": 1, "checkingType": "absdiff", "unitTests": [], "variableReplacements": [], "checkVariableNames": false, "checkingAccuracy": 0.001, "showFeedbackIcon": true, "showCorrectAnswer": true, "vsetRangePoints": 5, "answer": "{a}A+{b}B", "customMarkingAlgorithm": ""}, {"extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "precisionType": "dp", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerFraction": false, "scripts": {}, "showCorrectAnswer": true, "allowFractions": false, "marks": "2", "minValue": "({c}-{d}{a})/{b} +0.5", "correctAnswerStyle": "plain", "type": "numberentry", "precisionPartialCredit": "0", "prompt": "

$\\var{d}$ items of A are sold.  What is the minimum number of B that must be sold for the company to make a profit?

", "maxValue": "({c}-{d}{a})/{b} +0.5", "mustBeReduced": false, "unitTests": [], "mustBeReducedPC": 0, "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "strictPrecision": true, "showPrecisionHint": true, "precision": 0}], "metadata": {"licence": "None specified", "description": "

Writing equations

"}, "type": "question", "functions": {}, "preamble": {"js": "", "css": ""}, "rulesets": {}, "variable_groups": [], "name": "Portfolio Task 1 Q5", "tags": [], "extensions": [], "advice": "", "contributors": [{"name": "Ruth Allison", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2543/"}]}]}], "contributors": [{"name": "Ruth Allison", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2543/"}]}