// Numbas version: finer_feedback_settings {"name": "Simon's copy of Q7 Profit and Loss", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

Cost price, selling price, profit and loss

\n

rebelmaths

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

Cost price = 100%

\n

(a)

\n

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

\n

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

\n

Cost price = $\\frac{\\var{a}}{\\var{aprofit}} \\times 100 = £\\var{ansone}$

\n

Then round this to two deicmal places.

\n

\n

(b)

\n

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

\n

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

\n

Cost price = $\\frac{\\var{a}}{\\var{aloss}} \\times100 = £\\var{anstwo}$

\n

Then round this to two decimal places.

\n

\n

", "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": false, "maxValue": "{ansone}", "mustBeReducedPC": 0, "precisionMessage": "You have not given your answer to the correct precision."}], "type": "gapfill", "prompt": "

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

\n

£[[0]]

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

The selling price already includes the $\\var{profit}$% profit so it corresponds to (100 + $\\var{profit})\\%=\\var{100+profit}\\%$. We then need to find the cost price, which corresponds to 100%.

\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": false, "maxValue": "{anstwo}", "mustBeReducedPC": 0, "precisionMessage": "You have not given your answer to the correct precision."}], "type": "gapfill", "prompt": "

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

\n

£[[0]]

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

The selling price already includes the $\\var{loss}$% loss so it corresponds to (100 - $\\var{loss})\\%=\\var{100-loss}\\%$. We then need to find the cost price, which corresponds to 100%.

", "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.01)", "name": "a"}, "ansone": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "{a}*(100/{aprofit})", "name": "ansone"}, "anstwo": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "{a}*(100/{aloss})", "name": "anstwo"}}, "name": "Simon's copy of Q7 Profit and Loss", "variable_groups": [], "statement": "

The selling price of two items was £$\\var{dpformat(a,2)}$ each. To the nearest penny, what was the cost price of each if:

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