// Numbas version: exam_results_page_options {"name": "Q7 Profit and Loss", "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": "Q7 Profit and Loss", "tags": ["cost", "loss", "profit", "Rebel", "REBEL", "rebel", "rebelmaths", "teame"], "preamble": {"css": "", "js": ""}, "advice": "

Selling price = 100%

\n

Part 1:

\n

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

\n

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

\n

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

\n

Then round this to two deicmal places.

\n

\n

Part 2 :

\n

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

\n

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

\n

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

\n

Then round this to two deicmal places.

\n

\n

\n

Note:

\n

This question might require an awkward long division. If you are having problems with getting a correct answer you may need to work up to 5 or 6 decimal places in your long division.

\n

Here is a reminder video about doing long division:

\n

Long Division

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

There had been a profit of $\\var{profit}$% on the first item?

\n

€[[0]]

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

The selling price already includes the $\\var{profit}$% profit so it is 100% + $\\var{profit}$%. Find 1% and then 100%.

\n

Note this question might require an awkward long division. If you are having problems with getting a correct answer you may need to work up to 5 or 6 decimal places in your long division.

", "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": false, "minValue": "{ansone}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "showPrecisionHint": false, "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"stepsPenalty": 0, "prompt": "

There had been a loss of $\\var{loss}$% on the second item?

\n

€[[0]]

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

Now the loss has already been taken into account so the selling price is 100% - $\\var{loss}$%. Find 1% and then 100%.

\n

Again, note this question might require an awkward long division. If you are having problems with getting a correct answer you may need to work up to 5 or 6 decimal places in your long division.

", "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": false, "minValue": "{anstwo}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "showPrecisionHint": false, "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

The selling price of two items was €$\\var{a}$ each. To the nearest cent, what was the cost price of each if:

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(40..150#0.01)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "loss": {"definition": "random(5..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "loss", "description": ""}, "anstwo": {"definition": "{a}*(100/{aloss})", "templateType": "anything", "group": "Ungrouped variables", "name": "anstwo", "description": ""}, "ansone": {"definition": "{a}*(100/{aprofit})", "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": "

Cost price, selling price, profit and loss

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