// Numbas version: exam_results_page_options {"name": "Profit, Loss - Selling", "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"}, "name": "Profit, Loss - Selling", "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)}$

", "variables": {"aloss": {"definition": "100 - {loss}", "description": "", "name": "aloss", "templateType": "anything", "group": "Ungrouped variables"}, "profit": {"definition": "random(10..30)", "description": "", "name": "profit", "templateType": "anything", "group": "Ungrouped variables"}, "ansone": {"definition": "{a}*({aprofit}/100)", "description": "", "name": "ansone", "templateType": "anything", "group": "Ungrouped variables"}, "aprofit": {"definition": "100 + {profit}\n", "description": "", "name": "aprofit", "templateType": "anything", "group": "Ungrouped variables"}, "anstwo": {"definition": "{a}*({aloss}/100)", "description": "", "name": "anstwo", "templateType": "anything", "group": "Ungrouped variables"}, "a": {"definition": "random(40..150#0.5)", "description": "", "name": "a", "templateType": "anything", "group": "Ungrouped variables"}, "loss": {"definition": "random(5..20)", "description": "", "name": "loss", "templateType": "anything", "group": "Ungrouped variables"}}, "preamble": {"css": "", "js": ""}, "parts": [{"type": "gapfill", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "steps": [{"type": "information", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "useCustomName": false, "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

", "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "unitTests": [], "customName": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true}], "prompt": "

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

\n

€[[0]]

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

", "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "unitTests": [], "customName": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true}], "prompt": "

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

\n

€[[0]]

", "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "gaps": [{"precisionPartialCredit": 0, "variableReplacementStrategy": "originalfirst", "maxValue": "{anstwo}", "useCustomName": false, "precisionType": "dp", "showPrecisionHint": false, "customName": "", "precision": "2", "allowFractions": false, "showFeedbackIcon": true, "mustBeReducedPC": 0, "type": "numberentry", "precisionMessage": "You have not given your answer to the correct precision.", "customMarkingAlgorithm": "", "correctAnswerFraction": false, "variableReplacements": [], "scripts": {}, "showCorrectAnswer": true, "correctAnswerStyle": "plain", "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "marks": 1, "minValue": "{anstwo}", "strictPrecision": true, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true}], "marks": 0, "unitTests": [], "useCustomName": false, "customName": "", "stepsPenalty": 0, "showFeedbackIcon": true, "sortAnswers": false, "extendBaseMarkingAlgorithm": true}], "variable_groups": [], "ungrouped_variables": ["a", "profit", "loss", "ansone", "aprofit", "aloss", "anstwo"], "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "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

", "tags": [], "extensions": [], "rulesets": {}, "type": "question", "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "David Goulding", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2365/"}, {"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": "David Goulding", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2365/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}