// Numbas version: exam_results_page_options {"name": "Q15 Simple Percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Q15 Simple Percentages", "tags": ["percentage", "Percentage", "rebelmaths", "teame"], "metadata": {"description": "

Simple Percentages

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

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

", "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}$.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"wage": {"name": "wage", "group": "Ungrouped variables", "definition": "random(400..550#5)", "description": "", "templateType": "anything", "can_override": false}, "save": {"name": "save", "group": "Ungrouped variables", "definition": "random(10..25#5 except rent)", "description": "", "templateType": "anything", "can_override": false}, "name1": {"name": "name1", "group": "Ungrouped variables", "definition": " random([\"Mary\",\"Kate\",\"Sinead\",\"Niamh\"])", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "{wage}-({wage1}+{wage2})", "description": "", "templateType": "anything", "can_override": false}, "wage1": {"name": "wage1", "group": "Ungrouped variables", "definition": "({wage}*({rent}/100))", "description": "", "templateType": "anything", "can_override": false}, "wage2": {"name": "wage2", "group": "Ungrouped variables", "definition": "({wage}-{wage1})*({save}/100)", "description": "", "templateType": "anything", "can_override": false}, "acc": {"name": "acc", "group": "Ungrouped variables", "definition": "random([\"current\",\"savings\",\"deposit\"])", "description": "", "templateType": "anything", "can_override": false}, "rent": {"name": "rent", "group": "Ungrouped variables", "definition": "random(25..50#5)", "description": "", "templateType": "anything", "can_override": false}, "ans_dec": {"name": "ans_dec", "group": "Ungrouped variables", "definition": "precround(ans,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["rent", "save", "wage", "wage1", "acc", "wage2", "name1", "ans", "ans_dec"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

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

\n

€[[0]]

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "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.

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{ans}", "maxValue": "{ans}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}, {"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}]}], "contributors": [{"name": "Catherine Palmer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/423/"}, {"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}