// Numbas version: exam_results_page_options {"name": "NF3 - Percentage change (decrease then increase)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NF3 - Percentage change (decrease then increase)", "tags": [], "metadata": {"description": "

Compound percentage change.

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

The value of a car is initially {StartingPrice}. If the value decreases by {dec}%, and then increases by {inc}%, what is the final value?

\n

Give your answer correct to two decimal places.

", "advice": "

There is a {dec}% decrease in price. This means that price after the decrease will be {100-dec}% of the old price.

\n

\\[\\frac{\\var{100-dec}}{100} \\times \\var{StartingPrice} = \\var{(100-dec)/100*StartingPrice}\\]

\n

Then there is a {inc}% increase in price. This means the final price will be {100+inc}% of the price after the decrease.

\n

\\[\\frac{\\var{100+inc}}{100} \\times \\var{(100-dec)/100*StartingPrice} = £\\var{dpformat((100+inc)/100*(100-dec)/100*StartingPrice,2)}\\]

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"dec": {"name": "dec", "group": "Ungrouped variables", "definition": "random(1..50)", "description": "", "templateType": "anything", "can_override": false}, "inc": {"name": "inc", "group": "Ungrouped variables", "definition": "random(1..50)", "description": "", "templateType": "anything", "can_override": false}, "FinalPrice": {"name": "FinalPrice", "group": "Ungrouped variables", "definition": "StartingPrice*(1-dec/100)*(1+inc/100)", "description": "", "templateType": "anything", "can_override": false}, "StartingPrice": {"name": "StartingPrice", "group": "Ungrouped variables", "definition": "random(600..8000 # 10)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["dec", "inc", "FinalPrice", "StartingPrice"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

\n

£[[0]]

", "gaps": [{"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, "minValue": "FinalPrice", "maxValue": "FinalPrice", "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": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}]}], "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}