// Numbas version: finer_feedback_settings {"name": "Simon's copy of 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": [{"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": {}, "functions": {}, "extensions": [], "parts": [{"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]]

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "gaps": [{"showPrecisionHint": false, "showCorrectAnswer": true, "marks": 1, "precisionPartialCredit": 0, "variableReplacements": [], "allowFractions": false, "maxValue": "{ans}", "strictPrecision": true, "minValue": "{ans}", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "precision": 0, "scripts": {}, "precisionType": "dp", "correctAnswerFraction": false, "precisionMessage": "You have not given your answer to the correct precision."}], "variableReplacements": [], "stepsPenalty": 0, "type": "gapfill", "scripts": {}, "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.

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "scripts": {}, "type": "information", "variableReplacements": []}]}], "showQuestionGroupNames": false, "tags": ["cost", "percentages", "profit", "rebel", "Rebel", "REBEL", "rebelmaths", "teame"], "variable_groups": [], "question_groups": [{"questions": [], "pickingStrategy": "all-ordered", "pickQuestions": 0, "name": ""}], "preamble": {"js": "", "css": ""}, "type": "question", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Given the cost and profit, find the selling price

\n

rebelmaths

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

Calculate the Selling Price

", "variables": {"profit": {"templateType": "anything", "description": "", "definition": "random(10..15#0.5)", "group": "Ungrouped variables", "name": "profit"}, "profita": {"templateType": "anything", "description": "", "definition": "100 + {profit}", "group": "Ungrouped variables", "name": "profita"}, "item": {"templateType": "anything", "description": "", "definition": "random('A computer','An article','A Laptop', 'An insurance policy', 'A second-hand car')", "group": "Ungrouped variables", "name": "item"}, "ans": {"templateType": "anything", "description": "", "definition": "{price}*({profita}/100)", "group": "Ungrouped variables", "name": "ans"}, "price": {"templateType": "anything", "description": "", "definition": "random(1000..2000#100)", "group": "Ungrouped variables", "name": "price"}}, "name": "Simon's copy of Q11 Selling price given cost and profit", "ungrouped_variables": ["item", "price", "profit", "ans", "profita"], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}