// Numbas version: exam_results_page_options {"name": "Simon's copy of 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": [{"metadata": {"description": "

Profit and Loss, Percentages

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"css": "", "js": ""}, "advice": "

Treat the original cost price as 100%. Then:

\n

(a)

\n

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

\n

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

\n

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

\n

\n

(b)

\n

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

\n

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

\n

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

", "tags": [], "functions": {}, "parts": [{"sortAnswers": false, "stepsPenalty": 0, "marks": 0, "variableReplacements": [], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "gaps": [{"precisionType": "dp", "unitTests": [], "correctAnswerFraction": false, "type": "numberentry", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "scripts": {}, "minValue": "{ansone}", "notationStyles": ["plain", "en", "si-en"], "marks": 1, "precisionPartialCredit": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "precision": "2", "showPrecisionHint": false, "strictPrecision": true, "maxValue": "{ansone}", "mustBeReducedPC": 0, "precisionMessage": "You have not given your answer to the correct precision."}], "type": "gapfill", "prompt": "

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

\n

£[[0]]

", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "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 they sold the item for $(100+\\var{profit})\\% = \\var{100+profit}$% of the cost price.

\n

", "type": "information", "variableReplacementStrategy": "originalfirst", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacements": [], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true}], "variableReplacementStrategy": "originalfirst"}, {"sortAnswers": false, "stepsPenalty": 0, "marks": 0, "variableReplacements": [], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "gaps": [{"precisionType": "dp", "unitTests": [], "correctAnswerFraction": false, "type": "numberentry", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "scripts": {}, "minValue": "{anstwo}", "notationStyles": ["plain", "en", "si-en"], "marks": 1, "precisionPartialCredit": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "precision": "2", "showPrecisionHint": false, "strictPrecision": true, "maxValue": "{anstwo}", "mustBeReducedPC": 0, "precisionMessage": "You have not given your answer to the correct precision."}], "type": "gapfill", "prompt": "

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

\n

£[[0]]

", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "scripts": {}, "steps": [{"prompt": "

A profit of $\\var{loss}$% means that the seller lost $\\var{loss}$% of the cost price on the sale. So they sold the item for $(100-\\var{loss})\\% = \\var{100-loss}$% of the cost price.

", "type": "information", "variableReplacementStrategy": "originalfirst", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "variableReplacements": [], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true}], "variableReplacementStrategy": "originalfirst"}], "rulesets": {}, "ungrouped_variables": ["a", "profit", "loss", "ansone", "aprofit", "aloss", "anstwo"], "extensions": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"profit": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(10..30)", "name": "profit"}, "aloss": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "100 - {loss}", "name": "aloss"}, "aprofit": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "100 + {profit}\n", "name": "aprofit"}, "loss": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(5..20)", "name": "loss"}, "a": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(40..150#0.5)", "name": "a"}, "ansone": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "{a}*({aprofit}/100)", "name": "ansone"}, "anstwo": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "{a}*({aloss}/100)", "name": "anstwo"}}, "name": "Simon's copy of Q 4 Profit, Loss and Percentages", "variable_groups": [], "statement": "

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

\n

", "type": "question", "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/"}]}