// Numbas version: exam_results_page_options {"name": "BTW berekening", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "BTW berekening", "tags": [], "metadata": {"description": "

Eenvoudige berekening van korting en BTW

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Tijdens een speciaal actieweekend geeft een autohandelaar een korting van {p} % op alle tweedehandsauto's.

\n

Je krijgt van de verkoper de vraag of je eerste de korting wil aftrekken en dan de BTW (21 %) optellen of omgekeerd.

\n

Wat kies je? Maak de berekening voor een auto van € {prijs}.

", "advice": "

Als je voor een auto van € $\\var{prijs}$ eerst de korting in rekening brengt, is de kostprijs $\\var{prijs}\\cdot(1-\\frac{\\var{p}}{100})=\\var{korting}$ euro.

\n

Hierbij de BTW voegen levert als eindprijs $\\var{korting}\\cdot1,21 = \\var{formatnumber(precround(korting_btw,1),\"plain-eu\")}$ euro.

\n

Als we echter eerst de BTW toevoegen kost de auto $\\var{prijs}\\cdot1,21=\\var{btw}$ euro.

\n

Hierop de korting berekenen geeft een eindtotaal van $\\var{btw}\\cdot(1-\\frac{\\var{p}}{100})=\\var{formatnumber(precround(korting_btw,1),\"plain-eu\")}$

\n

Met andere woorden: het maakt niet uit of je eerst de korting berekent of de BTW toevoegt.

\n

Je kan dit ook zien door de korting en BTW tegelijk uit te rekenen:

\n

$\\var{prijs}\\cdot(1-\\frac{\\var{p}}{100})\\cdot1,21=\\var{prijs}\\cdot1,21\\cdot(1-\\frac{\\var{p}}{100})=\\var{formatnumber(precround(korting_btw,1),\"plain-eu\")}$

\n

In welke volgorde je de vermenigvuldiging doet, maakt niet uit.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"p": {"name": "p", "group": "Ungrouped variables", "definition": "random(5 .. 25#5)", "description": "", "templateType": "randrange", "can_override": false}, "prijs": {"name": "prijs", "group": "Ungrouped variables", "definition": "random(5000 .. 25000#1000)", "description": "", "templateType": "randrange", "can_override": false}, "korting_btw": {"name": "korting_btw", "group": "Ungrouped variables", "definition": "prijs*1.21*(1-p/100)", "description": "", "templateType": "anything", "can_override": false}, "korting": {"name": "korting", "group": "Ungrouped variables", "definition": "prijs*(1-p/100)", "description": "", "templateType": "anything", "can_override": false}, "btw": {"name": "btw", "group": "Ungrouped variables", "definition": "prijs*1.21", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["p", "prijs", "korting_btw", "korting", "btw"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Bereken de eindprijs als je eerst de korting aftrekt en daarna BTW toevoegt.

", "minValue": "korting_btw", "maxValue": "korting_btw", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain-eu"], "correctAnswerStyle": "plain-eu"}, {"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": "

Bereken de eindprijs als je eerst de BTW toevoegt en daarna de korting in rekening brengt.

", "minValue": "korting_btw", "maxValue": "korting_btw", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain-eu"], "correctAnswerStyle": "plain-eu"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Welke optie kies je?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Eerst korting, dan BTW", "Eerst BTW, dan korting", "Het maakt niet uit"], "matrix": [0, 0, "1"], "distractors": ["", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Hans Denayer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18121/"}]}]}], "contributors": [{"name": "Hans Denayer", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18121/"}]}