// Numbas version: finer_feedback_settings {"name": "Simon's copy of Q5 VAT", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "tags": [], "extensions": [], "parts": [{"showCorrectAnswer": true, "scripts": {}, "sortAnswers": false, "customMarkingAlgorithm": "", "marks": 0, "type": "gapfill", "gaps": [{"showPrecisionHint": false, "precisionPartialCredit": 0, "marks": 1, "customMarkingAlgorithm": "", "minValue": "{ansone}", "precisionMessage": "You have not given your answer to the correct precision.", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "precisionType": "dp", "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "correctAnswerStyle": "plain", "precision": "2", "unitTests": [], "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "maxValue": "{ansone}", "mustBeReduced": false, "strictPrecision": true}], "prompt": "

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

\n

£[[0]]

", "unitTests": [], "showFeedbackIcon": true, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "stepsPenalty": 0, "steps": [{"prompt": "

The price includes VAT already, so the $\\var{VAT}$% has already been added on. So the price of £$\\var{price}$ corresponds to $(100 + \\var{VAT})\\% = \\var{100+VAT}\\%$. One method is to find 1% first and then 100%. 

", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "unitTests": [], "customMarkingAlgorithm": "", "marks": 0, "type": "information"}]}, {"showCorrectAnswer": true, "scripts": {}, "sortAnswers": false, "customMarkingAlgorithm": "", "marks": 0, "type": "gapfill", "gaps": [{"showPrecisionHint": false, "precisionPartialCredit": 0, "marks": 1, "customMarkingAlgorithm": "", "minValue": "{anstwo}", "precisionMessage": "You have not given your answer to the correct precision.", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "precisionType": "dp", "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "correctAnswerStyle": "plain", "precision": "2", "unitTests": [], "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "maxValue": "{anstwo}", "mustBeReduced": false, "strictPrecision": true}], "prompt": "

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

\n

£[[0]]

", "unitTests": [], "showFeedbackIcon": true, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "stepsPenalty": 0, "steps": [{"prompt": "

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

", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "unitTests": [], "customMarkingAlgorithm": "", "marks": 0, "type": "information"}]}], "variables": {"ansone": {"templateType": "anything", "description": "", "name": "ansone", "group": "Ungrouped variables", "definition": "{price}/({VATa}/100)"}, "VAT": {"templateType": "anything", "description": "", "name": "VAT", "group": "Ungrouped variables", "definition": "random(13,21,22,23)"}, "VATnew": {"templateType": "anything", "description": "", "name": "VATnew", "group": "Ungrouped variables", "definition": "random(20..24 except VAT)"}, "VATnewa": {"templateType": "anything", "description": "", "name": "VATnewa", "group": "Ungrouped variables", "definition": "100 + {VATnew}"}, "price": {"templateType": "anything", "description": "", "name": "price", "group": "Ungrouped variables", "definition": "random(80..250)*(1+(VAT/100))"}, "anstwo": {"templateType": "anything", "description": "", "name": "anstwo", "group": "Ungrouped variables", "definition": "ansone*(1+({VATnew}/100))"}, "VATa": {"templateType": "anything", "description": "", "name": "VATa", "group": "Ungrouped variables", "definition": "100+{VAT}"}}, "advice": "

(a)

\n

The price before including VAT is 100%.

\n

The price after including VAT of $\\var{VAT}$% is $\\var{VATa}$%

\n

Therefore, to get the price before VAT (100%), we divide by $\\var{VATa}$ and multiply by 100. 

\n

$(£\\var{price} \\div \\var{VATa}) \\times 100  = £\\var{dpformat(ansone,2)}$

\n

\n

(Alternative method: this is the same as dividing by $\\var{VATa/100}$. So our answer is $£\\var{price} \\div \\var{VATa/100}  = £\\var{dpformat(ansone,2)}$)

\n

(b)

\n

Take the price before VAT, the answer from (a). 

\n

We want to find $\\var{VATnewa}\\%$ of $£\\var{dpformat(ansone,2)}$

\n

We can do this by multiplying it by $\\frac{\\var{VATnewa}}{100}$    (or alternatively multiply by $\\var{VATnewa/100}$)

\n

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

", "functions": {}, "metadata": {"description": "

VAT

\n

rebelmaths

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

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

", "variable_groups": [], "name": "Simon's copy of Q5 VAT", "ungrouped_variables": ["VAT", "VATnew", "price", "ansone", "anstwo", "VATa", "VATnewa"], "rulesets": {}, "type": "question", "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}