// Numbas version: exam_results_page_options {"name": "Simon's copy of Q15 Simple Percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

$\\var{name}$ spends $\\var{rent}$% of her wages on rent. She saves $\\var{save}$% of what is left in a $\\var{acc}$ account.

", "variable_groups": [], "preamble": {"js": "", "css": ""}, "extensions": [], "rulesets": {}, "variables": {"ans": {"description": "", "group": "Ungrouped variables", "definition": "{wage}-({wage1}+{wage2})", "name": "ans", "templateType": "anything"}, "save": {"description": "", "group": "Ungrouped variables", "definition": "random(10..25#5 except rent)", "name": "save", "templateType": "anything"}, "wage1": {"description": "", "group": "Ungrouped variables", "definition": "({wage}*({rent}/100))", "name": "wage1", "templateType": "anything"}, "wage2": {"description": "", "group": "Ungrouped variables", "definition": "({wage}-{wage1})*({save}/100)", "name": "wage2", "templateType": "anything"}, "acc": {"description": "", "group": "Ungrouped variables", "definition": "random([\"current\",\"savings\",\"deposit\"])", "name": "acc", "templateType": "anything"}, "name": {"description": "", "group": "Ungrouped variables", "definition": " random([\"Mary\",\"Kate\",\"Sinead\",\"Niamh\"])", "name": "name", "templateType": "anything"}, "ans_dec": {"description": "", "group": "Ungrouped variables", "definition": "precround(ans,2)", "name": "ans_dec", "templateType": "anything"}, "rent": {"description": "", "group": "Ungrouped variables", "definition": "random(25..50#5)", "name": "rent", "templateType": "anything"}, "wage": {"description": "", "group": "Ungrouped variables", "definition": "random(400..550#5)", "name": "wage", "templateType": "anything"}}, "tags": [], "functions": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Simple Percentages

\n

rebelmaths

"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "

First calculate the rent:

\n

$€\\var{wage} \\times \\frac{\\var{rent}}{100} = €\\var{wage1}$

\n

So she has $\\var{wage} - \\var{wage1}=£\\var{wage-wage1}$ left after rent

\n

She saves $\\var{save}$% of this, which is:

\n

$\\var{wage-wage1} \\times \\frac{\\var{save}}{100} = £\\var{wage2}$

\n

So spending money per week:

\n

$£\\var{wage} - £\\var{wage1} - £\\var{wage2} = £\\var{ans}$

\n

Rounding to two decimal places we get $£\\var{dpformat(ans_dec,2)}$.

", "name": "Simon's copy of Q15 Simple Percentages", "ungrouped_variables": ["rent", "save", "wage", "wage1", "acc", "wage2", "name", "ans", "ans_dec"], "parts": [{"showFeedbackIcon": true, "unitTests": [], "scripts": {}, "sortAnswers": false, "steps": [{"showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "unitTests": [], "scripts": {}, "prompt": "

Find out how much the rent is.

\n

Take this away from her wage.

\n

She saves $\\var{save}$% of what is left.

\n

Everything left over is spending money.

", "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "type": "information", "customMarkingAlgorithm": "", "marks": 0}], "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "type": "gapfill", "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "prompt": "

If $\\var{name}$'s weekly wage is $£\\var{wage}$, how much spending money does she have per week?

\n

£[[0]]

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