// Numbas version: exam_results_page_options {"name": "Julie'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.

", "rulesets": {}, "variable_groups": [], "ungrouped_variables": ["rent", "save", "wage", "wage1", "acc", "wage2", "name", "ans", "ans_dec"], "variablesTest": {"maxRuns": 100, "condition": ""}, "parts": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "gaps": [{"showPrecisionHint": true, "scripts": {}, "showCorrectAnswer": false, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "mustBeReduced": false, "precisionMessage": "You have not given your answer to the correct precision.", "type": "numberentry", "maxValue": "{ans}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "showFeedbackIcon": true, "precisionType": "dp", "strictPrecision": false, "allowFractions": false, "marks": "2", "correctAnswerStyle": "plain", "minValue": "{ans}", "precision": "2", "correctAnswerFraction": false}], "variableReplacements": [], "prompt": "

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

\n

€[[0]]

", "type": "gapfill", "showFeedbackIcon": true, "marks": 0}], "preamble": {"css": "", "js": ""}, "name": "Julie's copy of Q15 Simple Percentages", "advice": "

Calculate how much rent is first:

\n

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

\n

Next caluculate the saving, after the rent is subtracted:

\n

$(€\\var{wage} - €\\var{wage1}) \\times \\frac{\\var{save}}{100} = €\\var{wage2}$

\n

Spending money per week:

\n

$€\\var{wage} - (€\\var{wage1} + €\\var{wage2}) = €\\var{ans}$

\n

Rounding to two decimal places we get $€\\var{ans_dec}$.

", "tags": [], "extensions": [], "metadata": {"description": "

Simple Percentages

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "variables": {"wage1": {"definition": "({wage}*({rent}/100))", "description": "", "templateType": "anything", "name": "wage1", "group": "Ungrouped variables"}, "ans": {"definition": "{wage}-({wage1}+{wage2})", "description": "", "templateType": "anything", "name": "ans", "group": "Ungrouped variables"}, "ans_dec": {"definition": "precround(ans,2)", "description": "", "templateType": "anything", "name": "ans_dec", "group": "Ungrouped variables"}, "wage2": {"definition": "({wage}-{wage1})*({save}/100)", "description": "", "templateType": "anything", "name": "wage2", "group": "Ungrouped variables"}, "wage": {"definition": "random(400..550#5)", "description": "", "templateType": "anything", "name": "wage", "group": "Ungrouped variables"}, "acc": {"definition": "random([\"current\",\"savings\",\"deposit\"])", "description": "", "templateType": "anything", "name": "acc", "group": "Ungrouped variables"}, "rent": {"definition": "random(25..50#5)", "description": "", "templateType": "anything", "name": "rent", "group": "Ungrouped variables"}, "save": {"definition": "random(10..25#5 except rent)", "description": "", "templateType": "anything", "name": "save", "group": "Ungrouped variables"}, "name": {"definition": " random([\"Mary\",\"Kate\",\"Sinead\",\"Niamh\"])", "description": "", "templateType": "anything", "name": "name", "group": "Ungrouped variables"}}, "functions": {}, "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}