// Numbas version: exam_results_page_options {"name": "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": {}, "name": "Numerical Reasoning - percentage increase in price", "tags": ["maths-aid", "money", "numerical reasoning", "percentage", "profit"], "advice": "

Think of the cost to produce as being 100%. The price is {percent}% greater, so is {percent+100}% of the cost, i.e. $\\frac{\\var{percent+100}}{100}$ of the cost.

\n

Hence the cost is $\\frac{100}{\\var{percent+100}} = \\simplify{100/{percent+100}}$ of the price = $\\simplify{100/{percent+100}} \\times £\\var{dpformat(sell,2)} = £\\var{produce}$.

\n

The profit = selling price - cost = £{dpformat(sell,2)} - £{produce} = £{dpformat(sell-produce,2)}.

", "rulesets": {}, "parts": [{"prompt": "

How much did it cost to produce the {thing[1]} and what was the profit?

\n

Cost to produce: £ [[0]]

\n

Profit: £ [[1]]

", "gaps": [{"minvalue": "produce", "type": "numberentry", "maxvalue": "produce", "marks": 1.0, "showPrecisionHint": false}, {"minvalue": "sell-produce", "type": "numberentry", "maxvalue": "sell-produce", "marks": 1.0, "showPrecisionHint": false}], "type": "gapfill", "marks": 0.0}], "extensions": [], "statement": "

The selling price of {thing[0]} is £{dpformat(sell,2)}.

\n

This price was {percent}% greater than the cost to produce the {thing[1]}.

", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"sell": {"definition": "produce*(1+percent/100)", "name": "sell"}, "thing": {"definition": "random(['a box of chocolates','box'],['an action figure','toy'],['a scarf','scarf'])", "name": "thing"}, "produce": {"definition": "random(3..12 except 10)", "name": "produce"}, "percent": {"definition": "random(10..60#5)", "name": "percent"}}, "metadata": {"notes": "", "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.

\n

Based on question 1 from section 3 of the Maths-Aid workbook on numerical reasoning.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}