// Numbas version: finer_feedback_settings {"name": "Exam version Q15", "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": "Exam version Q15", "tags": [], "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 the nearest cent gives $\\var{ans_dec}$.
", "rulesets": {}, "parts": [{"prompt": "If $\\var{name}$'s weekly wage is $€\\var{wage}$, how much spending money does she have per week? Give your answer correct to the nearest cent.
\n€[[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans_dec}", "strictPrecision": false, "minValue": "{ans_dec}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": false, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "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.
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "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": ""}}, "metadata": {"description": "Simple Percentages
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "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/"}]}