// Numbas version: finer_feedback_settings {"name": "Lois's copy of Numerical Reasoning - percentage increase in price", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["sell", "thing", "produce", "percent", "percentdec"], "name": "Lois's copy of Numerical Reasoning - percentage increase in price", "tags": ["percent", "Percentage", "percentage", "percentage increase"], "preamble": {"css": "", "js": ""}, "advice": "
We can think of the selling price as {percent+100}% of the production price.
\nThis means that $ \\text{Selling Price} = \\text{Production Price} \\times \\var{percentdec}$
\nSo $\\text{Production Price} = \\text{Selling price} \\div \\var{percentdec} = \\var{sell} \\div \\var{percentdec} = \\var{produce}$
\nThe profit is the difference between the cost and production prices and so is £{dpformat(sell,2)} - £{produce} = £{dpformat(sell-produce,2)}.
\n\nYou can find more information about calculating percentages in the leaflets available from Mathcentre at http://www.mathscentre.ac.uk/types/quick-reference/percentages/
", "rulesets": {}, "parts": [{"prompt": "How much did it cost to produce the {thing[1]} and what was the profit?
\nCost to produce: £ [[0]]
\nProfit: £ [[1]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "produce", "minValue": "produce", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "sell-produce", "minValue": "sell-produce", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "The selling price of {thing[0]} is £{dpformat(sell,2)}.
\nThis price was {percent}% greater than the cost of producing the {thing[1]}.
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"sell": {"definition": "produce*(1+percent/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "sell", "description": ""}, "thing": {"definition": "random(['a box of chocolates','box'],['an action figure','toy'],['a scarf','scarf'])", "templateType": "anything", "group": "Ungrouped variables", "name": "thing", "description": ""}, "produce": {"definition": "random(3..12 except 10)", "templateType": "anything", "group": "Ungrouped variables", "name": "produce", "description": ""}, "percent": {"definition": "random(10..60#5)", "templateType": "anything", "group": "Ungrouped variables", "name": "percent", "description": ""}, "percentdec": {"definition": "1+percent/100", "templateType": "anything", "group": "Ungrouped variables", "name": "percentdec", "description": ""}}, "metadata": {"description": "Given the selling price of an item both as a cash amount and as a percentage of the cost of production, find the cost of production and the profit.
\nBased on question 1 from section 3 of the Maths-Aid workbook on numerical reasoning.
\nAdded to Calculator test.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}