// Numbas version: exam_results_page_options {"name": "Profit, Loss and Percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"css": "", "js": ""}, "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

", "ungrouped_variables": ["a", "profit", "loss", "ansone", "aprofit", "aloss", "anstwo"], "variables": {"anstwo": {"description": "", "name": "anstwo", "templateType": "anything", "definition": "{a}*({aloss}/100)", "group": "Ungrouped variables"}, "a": {"description": "", "name": "a", "templateType": "anything", "definition": "random(40..150#0.5)", "group": "Ungrouped variables"}, "ansone": {"description": "", "name": "ansone", "templateType": "anything", "definition": "{a}*({aprofit}/100)", "group": "Ungrouped variables"}, "aprofit": {"description": "", "name": "aprofit", "templateType": "anything", "definition": "100 + {profit}\n", "group": "Ungrouped variables"}, "profit": {"description": "", "name": "profit", "templateType": "anything", "definition": "random(10..30)", "group": "Ungrouped variables"}, "loss": {"description": "", "name": "loss", "templateType": "anything", "definition": "random(5..20)", "group": "Ungrouped variables"}, "aloss": {"description": "", "name": "aloss", "templateType": "anything", "definition": "100 - {loss}", "group": "Ungrouped variables"}}, "variable_groups": [], "rulesets": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Profit and Loss, Percentages

\n

rebelmaths

"}, "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)}$

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

", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}], "variableReplacements": [], "showCorrectAnswer": true, "sortAnswers": false, "useCustomName": false, "prompt": "

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

\n

€[[0]]

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

", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}], "variableReplacements": [], "showCorrectAnswer": true, "sortAnswers": false, "useCustomName": false, "prompt": "

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

\n

€[[0]]

", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}], "functions": {}, "tags": [], "extensions": [], "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/"}]}