// Numbas version: finer_feedback_settings {"name": "Q8 Calculating Gross wage given tax information 4", "extensions": [], "custom_part_types": [], "resources": [["question-resources/incometaxpreparer.jpg", "/srv/numbas/media/question-resources/incometaxpreparer.jpg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["name", "cut", "tax", "credit", "standard", "higher", "ansone", "anstwo", "m"], "name": "Q8 Calculating Gross wage given tax information 4", "tags": ["rebelmaths"], "advice": "

Calculate the gross income by; 

\n

$(((\\var{tax}+\\var{credit})-(\\var{cut} \\times \\frac{\\var{standard}}{100})) \\times \\frac{100}{\\var{higher}})+\\var{cut} = €\\var{anstwo}$

\n

 

\n

\n

 

", "rulesets": {}, "parts": [{"stepsPenalty": 0, "prompt": "

Calculate his gross salary for the year, to the nearest cent.

\n

€[[0]]

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "2", "maxValue": "{anstwo}", "minValue": "{anstwo}", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Calculate his gross tax as before.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "type": "gapfill"}], "extensions": [], "statement": "

\n

$\\var{name}$ paid €$\\var{tax}$ in income tax for the year. He has a tax credit of €$\\var{credit}$ and his standard cut-off point was $€\\var{cut}$. The standard rate of income tax was $\\var{standard}$% and the higher rate was $\\var{higher}$%.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"cut": {"definition": "random(25000..30000#500)", "templateType": "anything", "group": "Ungrouped variables", "name": "cut", "description": ""}, "anstwo": {"definition": "((({tax}+{credit})-({cut}*({standard}/100)))*(100/{higher}))+{cut}", "templateType": "anything", "group": "Ungrouped variables", "name": "anstwo", "description": ""}, "name": {"definition": " random('Robert','John','Liam','Karl','Victor')", "templateType": "anything", "group": "Ungrouped variables", "name": "name", "description": ""}, "ansone": {"definition": "({tax}+{credit})*(100/{standard})", "templateType": "anything", "group": "Ungrouped variables", "name": "ansone", "description": ""}, "tax": {"definition": "(m*higher) + ((standard*cut)/100)-credit", "templateType": "anything", "group": "Ungrouped variables", "name": "tax", "description": ""}, "m": {"definition": "random(101..199)", "templateType": "anything", "group": "Ungrouped variables", "name": "m", "description": ""}, "standard": {"definition": "random(20..22#0.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "standard", "description": ""}, "credit": {"definition": "random(2500..3500#100)", "templateType": "anything", "group": "Ungrouped variables", "name": "credit", "description": ""}, "higher": {"definition": "random(40..43)", "templateType": "anything", "group": "Ungrouped variables", "name": "higher", "description": ""}}, "metadata": {"description": "

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}