// Numbas version: exam_results_page_options {"name": "Q5 VAT", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["VAT", "VATnew", "price", "ansone", "anstwo", "VATa", "VATnewa"], "name": "Q5 VAT", "tags": ["Rebel", "REBEL", "rebel", "rebelmaths", "teame", "VAT"], "preamble": {"css": "", "js": ""}, "advice": "

Price including VAT of $\\var{VAT}$% = $\\var{VATa}$%

\n

Part 1:

\n

To get price before VAT (100%), divide by $\\var{VATa}$% (or multiply by $\\frac{100}{\\var{VATa}}$)

\n

$(€\\var{price} \\div (\\frac{\\var{VATa}}{100}))  = €\\var{ansone}$

\n

Part 2:

\n

First get the price before VAT, the answer from part 1

\n

Then, multiply by $\\var{VATnewa}$%, (or multiply by $\\frac{\\var{VATnewa}}{100})$

\n

$\\var{ansone} \\times (\\frac{\\var{VATnewa}}{100}) = €\\var{anstwo}$

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

What is the price before VAT, to the nearest cent?

\n

€[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

The price includes VAT already, so the $\\var{VAT}$% has already been added on. So the price is 100% + $\\var{VAT}$%. We need to find 1% first and then 100%. Note if the answer is eg. 24 you need to enter 24.00.

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

What will the new price be if the VAT rate changes to $\\var{VATnew}$%?

\n

€[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

Start with the price before VAT (answer to part a) and add on the new VAT.

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

The price of an item including VAT at $\\var{VAT}$% is €$\\var{price}$.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"anstwo": {"definition": "ansone*(1+({VATnew}/100))", "templateType": "anything", "group": "Ungrouped variables", "name": "anstwo", "description": ""}, "ansone": {"definition": "{price}/({VATa}/100)", "templateType": "anything", "group": "Ungrouped variables", "name": "ansone", "description": ""}, "price": {"definition": "random(80..250)*(1+(VAT/100))", "templateType": "anything", "group": "Ungrouped variables", "name": "price", "description": ""}, "VATnewa": {"definition": "100 + {VATnew}", "templateType": "anything", "group": "Ungrouped variables", "name": "VATnewa", "description": ""}, "VATa": {"definition": "100+{VAT}", "templateType": "anything", "group": "Ungrouped variables", "name": "VATa", "description": ""}, "VATnew": {"definition": "random(20..24 except VAT)", "templateType": "anything", "group": "Ungrouped variables", "name": "VATnew", "description": ""}, "VAT": {"definition": "random(13,21,22,23)", "templateType": "anything", "group": "Ungrouped variables", "name": "VAT", "description": ""}}, "metadata": {"description": "

VAT

\n

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/"}]}