// Numbas version: finer_feedback_settings {"name": "NA Use tax table to calculate tax payable (10+)", "extensions": [], "custom_part_types": [], "resources": [["question-resources/tax_table_image.png", "tax_table_image.png"], ["question-resources/tax_table_image_3.png", "tax_table_image_3.png"], ["question-resources/tax_table_image_4.png", "tax_table_image_4.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NA Use tax table to calculate tax payable (10+)", "tags": ["LANTITE", "Western Sydney MESH"], "metadata": {"description": "
Used for LANTITE preparation (Australia). NA = Number & Algebra strand. Students are shown a personal income tax table and given a randomly generated taxable income. They are required to calculate the tax payable.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThe table below shows the tax rates for Australian residents in the 2019-2020 financial year.
\n
https://www.ato.gov.au/Rates/Individual-income-tax-rates/
", "advice": "\nFirst, determine which row of the table you should use, based on the taxable income given.
\nThe taxable income is \\${formatnumber(TaxableIncome,\"si-en\")}, so you should use the {RowNumber[BracketIndex]} row in the given tax table.
\nThis row says that no tax is payable on taxable incomes below \\$18 201 therefore the tax payable on \\${formatnumber(TaxableIncome,\"si-en\")} is \\$0.
\nThis row says that the tax payable is worked out by:
\n{Rate[BracketIndex]*100} cents for each \\$1 over \\${formatnumber(Level[BracketIndex],\"si-en\")}.
\nNext, calculate how many dollars are above \\${formatnumber(Level[BracketIndex],\"si-en\")}:
\n\\${formatnumber(TaxableIncome,\"si-en\")} - \\${formatnumber(Level[BracketIndex],\"si-en\")} = \\${formatnumber(TaxableIncome-Level[BracketIndex],\"si-en\")}
\nFinally, multiply the cents in the dollar rate (as a decimal) by this amount:
\n{Rate[BracketIndex]} x \\${formatnumber(TaxableIncome-Level[BracketIndex],\"si-en\")} = \\${trim(dpformat(Rate[BracketIndex]*(TaxableIncome-Level[BracketIndex]),2,\"si-en\"))}
\nThe amount of tax payable is \\${trim(dpformat(TaxDue,0,\"si-en\"))} to the nearest dollar.
\nThis row says that the tax payable is worked out by:
\n\\${formatnumber(BaseAmount[BracketIndex],\"si-en\")} plus {Rate[BracketIndex]*100} cents for each \\$1 over \\${formatnumber(Level[BracketIndex],\"si-en\")}.
\nSecondly calculate how many dollars are above \\${formatnumber(Level[BracketIndex],\"si-en\")}:
\n\\${formatnumber(TaxableIncome,\"si-en\")} - \\${formatnumber(Level[BracketIndex],\"si-en\")} = \\${formatnumber(TaxableIncome-Level[BracketIndex],\"si-en\")}
\nThirdly, multiply the cents in the dollar rate (as a decimal) by this amount:
\n{Rate[BracketIndex]} x \\${formatnumber(TaxableIncome-Level[BracketIndex],\"si-en\")} = \\${trim(dpformat(Rate[BracketIndex]*(TaxableIncome-Level[BracketIndex]),2,\"si-en\"))}
\nFinally, add this to the base amount:
\n\\${formatnumber(BaseAmount[BracketIndex],\"si-en\")} + \\${trim(dpformat(Rate[BracketIndex]*(TaxableIncome-Level[BracketIndex]),2,\"si-en\"))} = \\${trim(dpformat(TaxDue,2,\"si-en\"))}
\nThe amount of tax payable is \\${trim(dpformat(TaxDue,0,\"si-en\"))} to the nearest dollar.
\nA list containing the five income brackets.
", "templateType": "anything", "can_override": false}, "RowNumber": {"name": "RowNumber", "group": "Ungrouped variables", "definition": "['second','third','fourth','fifth']", "description": "\n\n\n\nWhich row of the tax table the student should be looking at.
", "templateType": "anything", "can_override": false}, "TaxDue": {"name": "TaxDue", "group": "Ungrouped variables", "definition": "TaxPayable[BracketIndex]", "description": "\n\n\n\n\n\n\n\n\nThis is the tax payable for the randomly generated TaxableIncome.
", "templateType": "anything", "can_override": false}, "NamesIndex": {"name": "NamesIndex", "group": "Ungrouped variables", "definition": "random(0 .. 6#1)", "description": "\n\n\n\n\n\n\n\n\n\n\nThe random number used to index the list of names.
", "templateType": "randrange", "can_override": false}, "TaxPayable": {"name": "TaxPayable", "group": "Ungrouped variables", "definition": "[0.19*(TaxableIncome-18200),3572+0.325*(TaxableIncome-37000),20797+0.37*(TaxableIncome-90000),54097+0.45*(TaxableIncome-180000)]", "description": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThis variable is used in the Marking section to calculate the taxpayable, using the Taxable Income. However, more variables are required for the Advice section, in order to be able to print all values in the relevant row of the tax table.
", "templateType": "anything", "can_override": false}, "names": {"name": "names", "group": "Ungrouped variables", "definition": "[ \"Jay\", \"Lucy\", \"Sue\", \"Tim\", \"Mark\", \"Ahmad\", \"Neera\" ]", "description": "\n\n\n\n\n\n\n\n\nThe list of possible names for this question.
", "templateType": "list of strings", "can_override": false}, "TaxableIncome": {"name": "TaxableIncome", "group": "Ungrouped variables", "definition": "IncomeBrackets[BracketIndex]", "description": "\n\n\n\n\n\n\n\n\n\n\n\n\nA randomly selected number from the tax bracket indicated by BracketIndex.
", "templateType": "anything", "can_override": false}, "Rate": {"name": "Rate", "group": "Ungrouped variables", "definition": "[0.19,0.325,0.37,0.45]", "description": "\n\n\n\n\n\nThis is the second number given in the tax table calculation, for each row in the table.
", "templateType": "anything", "can_override": false}, "BaseAmount": {"name": "BaseAmount", "group": "Ungrouped variables", "definition": "[0,3572,20797,54097]", "description": "\n\n\n\n\nThis is the first number given in the tax table calculation, for each row in the table.
", "templateType": "anything", "can_override": false}, "Level": {"name": "Level", "group": "Ungrouped variables", "definition": "[18200,37000,90000,180000]", "description": "\n\n\n\n\n\nThis is the third number given in the tax table calculation, for each row in the table.
", "templateType": "anything", "can_override": false}, "BracketIndex": {"name": "BracketIndex", "group": "Ungrouped variables", "definition": "random(0 .. 3#1)", "description": "\n\n\n\n\n\n\n\n\n\n\n\n\nThe random number used to index the IncomeBrackets. It also indexes the lists for BaseAmount, Rate, Level, RowNumber and TaxPayable, so that the correct figures are used based on the tax bracket.
", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["names", "NamesIndex", "BracketIndex", "IncomeBrackets", "TaxableIncome", "TaxPayable", "TaxDue", "BaseAmount", "Rate", "Level", "RowNumber"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "\n\n{names[NamesIndex]} has a taxable income of \\${formatnumber(TaxableIncome,\"si-en\")} in 2019-2020. How much tax will {names[NamesIndex]} be required to pay? Round your answer to the nearest whole dollar. Do not type a comma and do not type the \\$ sign.
", "minValue": "int(TaxDue)", "maxValue": "int(TaxDue)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}], "resources": ["question-resources/tax_table_image.png", "question-resources/tax_table_image_3.png", "question-resources/tax_table_image_4.png"]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}