// Numbas version: finer_feedback_settings {"name": "Lois'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": [{"functions": {}, "ungrouped_variables": ["rent", "save", "wage", "wage1", "acc", "wage2", "name", "ans", "ans_dec"], "name": "Lois's copy of Q15 Simple Percentages", "tags": ["Percentage", "percentage", "rebelmaths", "teame"], "preamble": {"css": "", "js": ""}, "advice": "
Calculate how much rent is first:
\n$€\\var{wage} \\times \\frac{\\var{rent}}{100} = €\\var{wage1}$
\nNext caluculate the saving, after the rent is subtracted:
\n$(€\\var{wage} - €\\var{wage1}) \\times \\frac{\\var{save}}{100} = €\\var{wage2}$
\nSpending money per week:
\n$€\\var{wage} - (€\\var{wage1} + €\\var{wage2}) = €\\var{ans}$
\nRounding to two decimal places we get $€\\var{ans_dec}$.
", "rulesets": {}, "parts": [{"stepsPenalty": 0, "prompt": "If $\\var{name}$'s weekly wage is $€\\var{wage}$, how much spending money does she have per week?
\n€[[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "showPrecisionHint": true, "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": false, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "maxValue": "{ans}", "minValue": "{ans}", "type": "numberentry"}], "steps": [{"prompt": "Find out how much the rent is.
\nTake this away from her wage.
\nShe saves $\\var{save}$% of what is left.
\nEverything left over is spending money.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}], "extensions": [], "statement": "$\\var{name}$ spends $\\var{rent}$% of her wages on rent. She saves $\\var{save}$% of what is left in a $\\var{acc}$ account.
", "type": "question", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "question_groups": [{"pickingStrategy": "all-ordered", "name": "", "questions": [], "pickQuestions": 0}], "variables": {"wage": {"definition": "random(400..550#5)", "templateType": "anything", "group": "Ungrouped variables", "name": "wage", "description": ""}, "acc": {"definition": "random([\"current\",\"savings\",\"deposit\"])", "templateType": "anything", "group": "Ungrouped variables", "name": "acc", "description": ""}, "ans_dec": {"definition": "precround(ans,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "ans_dec", "description": ""}, "wage2": {"definition": "({wage}-{wage1})*({save}/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "wage2", "description": ""}, "name": {"definition": " random([\"Mary\",\"Kate\",\"Sinead\",\"Niamh\"])", "templateType": "anything", "group": "Ungrouped variables", "name": "name", "description": ""}, "rent": {"definition": "random(25..50#5)", "templateType": "anything", "group": "Ungrouped variables", "name": "rent", "description": ""}, "ans": {"definition": "{wage}-({wage1}+{wage2})", "templateType": "anything", "group": "Ungrouped variables", "name": "ans", "description": ""}, "wage1": {"definition": "({wage}*({rent}/100))", "templateType": "anything", "group": "Ungrouped variables", "name": "wage1", "description": ""}, "save": {"definition": "random(10..25#5 except rent)", "templateType": "anything", "group": "Ungrouped variables", "name": "save", "description": ""}}, "showQuestionGroupNames": false, "metadata": {"description": "Simple Percentages
\nrebelmaths
", "licence": "Creative Commons Attribution 4.0 International"}, "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}