// Numbas version: exam_results_page_options {"name": "Q11 Selling price given cost and profit", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["item", "price", "profit", "ans", "profita"], "name": "Q11 Selling price given cost and profit", "tags": ["cost", "percentages", "profit", "rebel", "Rebel", "REBEL", "rebelmaths", "teame"], "advice": "

Cost price = 100%

\n

selling price = $\\var{profita}$%

\n

Selling price = $\\frac{\\var{price}}{100} \\times \\var{profita}$

\n

$€\\var{price} \\times \\frac{\\var{profita}}{100} = €\\var{ans}$

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

$\\var{item}$ which costs €$\\var{price}$ was sold at a profit of $\\var{profit}$%. What was the selling price, to the nearest cent?

\n

€[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": 0, "maxValue": "{ans}", "minValue": "{ans}", "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

A profit of $\\var{profit}$% means that the seller made an extra $\\var{profit}$% of the cost price on the sale. So first we need to find that $\\var{profit}$% of the cost price.

\n

Then we add that on to $€\\var{a}$ to find the selling price including the $\\var{profit}$% profit.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "type": "gapfill"}], "extensions": [], "statement": "

Calculate the Selling Price

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"profit": {"definition": "random(10..15#0.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "profit", "description": ""}, "item": {"definition": "random('A computer','An article','A Laptop', 'An insurance policy', 'A second-hand car')", "templateType": "anything", "group": "Ungrouped variables", "name": "item", "description": ""}, "price": {"definition": "random(1000..2000#100)", "templateType": "anything", "group": "Ungrouped variables", "name": "price", "description": ""}, "profita": {"definition": "100 + {profit}", "templateType": "anything", "group": "Ungrouped variables", "name": "profita", "description": ""}, "ans": {"definition": "{price}*({profita}/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "ans", "description": ""}}, "metadata": {"description": "

Given the cost and profit, find the selling price

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}