// Numbas version: exam_results_page_options {"name": "Lois's copy of Q3 Calculating the standard percentage rate", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["name", "salary", "credit", "ans", "rate", "tax", "He", "His", "taxtotal", "dectax"], "name": "Lois's copy of Q3 Calculating the standard percentage rate", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

In total {name} owes  €{credit} + €{tax} = €{taxtotal} in tax on {his} income of €{salary}.

\n

As a proportion of {his} salary this is $\\dfrac{\\var{taxtotal}}{\\var{salary}}$.

\n

If we calculate $\\var{taxtotal} \\div \\var{salary}$ this gives {dectax} or {ans} %.

\n

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

If {He} pays  €{tax} in income tax for the year, find the standard rate of income tax in {his} country.

\n

[[0]]% (Give your answer to 1 d.p.)

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans}", "strictPrecision": false, "minValue": "{ans}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "1", "scripts": {}, "marks": "1", "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": false, "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

{name} has an annual salary of €{salary}. The whole of this income is taxed at the standard rate of $x$% for {his} country.  {name} is allowed an annual tax credit of €{credit}, which means {He} does not have to pay the first €{credit} of the tax owed. 

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"salary": {"definition": "random(30000..50000#1000)", "templateType": "anything", "group": "Ungrouped variables", "name": "salary", "description": ""}, "dectax": {"definition": "taxtotal/salary", "templateType": "anything", "group": "Ungrouped variables", "name": "dectax", "description": ""}, "His": {"definition": "If (He = 'he', 'his', 'her')", "templateType": "anything", "group": "Ungrouped variables", "name": "His", "description": ""}, "name": {"definition": " If(He = 'he', random('Robert','John','Karl'), random('Victoria', 'Leila', 'Angela'))", "templateType": "anything", "group": "Ungrouped variables", "name": "name", "description": ""}, "tax": {"definition": "((salary*rate)/100)-credit", "templateType": "anything", "group": "Ungrouped variables", "name": "tax", "description": ""}, "credit": {"definition": "random(2800..3500#100)", "templateType": "anything", "group": "Ungrouped variables", "name": "credit", "description": ""}, "rate": {"definition": "random(18..23#0.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "rate", "description": ""}, "ans": {"definition": "({credit}+{tax})/({salary}/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "ans", "description": ""}, "taxtotal": {"definition": "tax + credit", "templateType": "anything", "group": "Ungrouped variables", "name": "taxtotal", "description": ""}, "He": {"definition": "random('he', 'she')", "templateType": "anything", "group": "Ungrouped variables", "name": "He", "description": ""}}, "metadata": {"description": "

Income tax

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "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/"}]}