// Numbas version: exam_results_page_options {"name": "Q 4 Profit, Loss and Percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "profit", "loss", "ansone", "aprofit", "aloss", "anstwo"], "name": "Q 4 Profit, Loss and Percentages", "tags": ["loss", "profit", "Rebel", "REBEL", "rebel", "rebelmaths", "teame"], "preamble": {"css": "", "js": ""}, "advice": "

Cost price = 100%

\n

Part 1:

\n

If sold at a profit of $\\var{profit}$%, then

\n

Selling price = $\\var{aprofit}$%

\n

$\\var{a} \\times (\\frac{\\var{aprofit}}{100}) = \\var{ansone}$

\n

\n

Part 2 :

\n

If sold at a loss of $\\var{loss}$%, then

\n

Selling price = $\\var{aloss}$%

\n

$\\var{a} \\times (\\frac{\\var{aloss}}{100}) = \\var{anstwo}$

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

Sold at a profit of $\\var{profit}$%?

\n

€[[0]]

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

Sold at a loss of $\\var{loss}$%?

\n

€[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

A loss of $\\var{loss }$% means that the seller lost $\\var{loss }$% of the original cost price on the sale. So first we need to find that $\\var{loss }$% of the cost price.

\n

Then we subtract that from $€\\var{a}$ to find the selling price including the $\\var{loss }$% loss.

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

The cost price of an item was €{dpformat(a,2)}. To the nearest cent, what was the selling price if the item was:

\n

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(40..150#0.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "loss": {"definition": "random(5..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "loss", "description": ""}, "anstwo": {"definition": "{a}*({aloss}/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "anstwo", "description": ""}, "ansone": {"definition": "{a}*({aprofit}/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "ansone", "description": ""}, "profit": {"definition": "random(10..30)", "templateType": "anything", "group": "Ungrouped variables", "name": "profit", "description": ""}, "aloss": {"definition": "100 - {loss}", "templateType": "anything", "group": "Ungrouped variables", "name": "aloss", "description": ""}, "aprofit": {"definition": "100 + {profit}\n", "templateType": "anything", "group": "Ungrouped variables", "name": "aprofit", "description": ""}}, "metadata": {"description": "

Profit and Loss, Percentages

\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/"}]}