// Numbas version: exam_results_page_options {"name": "Percentages (advanced)", "extensions": ["eukleides", "jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Percentages (advanced)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "tags": ["category: miscellaneous", "skill: 324, Percentages (advanced)"], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "variables": {"groups": {"name": "groups", "group": "Ungrouped variables", "definition": "[\n [\"car\",10000,\"decreases\",10,\"increases\",10],\n [\"boat\",1000,\"increases\",10,\"decreases\",10],\n [\"car\",20000,\"decreases\",20,\"increases\",20],\n [\"boat\",2000,\"increases\",20,\"decreases\",20],\n [\"car\",10000,\"decreases\",20,\"increases\",10]\n]", "description": "", "templateType": "anything"}, "group": {"name": "group", "group": "Ungrouped variables", "definition": "random(groups)", "description": "", "templateType": "anything"}, "vehicle": {"name": "vehicle", "group": "Ungrouped variables", "definition": "group[0]", "description": "", "templateType": "anything"}, "price": {"name": "price", "group": "Ungrouped variables", "definition": "group[1]", "description": "", "templateType": "anything"}, "direction1": {"name": "direction1", "group": "Ungrouped variables", "definition": "group[2]", "description": "", "templateType": "anything"}, "change1": {"name": "change1", "group": "Ungrouped variables", "definition": "group[3]", "description": "", "templateType": "anything"}, "direction2": {"name": "direction2", "group": "Ungrouped variables", "definition": "group[4]", "description": "", "templateType": "anything"}, "change2": {"name": "change2", "group": "Ungrouped variables", "definition": "group[5]", "description": "", "templateType": "anything"}, "finalprice": {"name": "finalprice", "group": "Ungrouped variables", "definition": "price \n* if(direction1=\"decreases\",100-change1,100+change1)/100\n* if(direction2=\"decreases\",100-change2,100+change2)/100", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["groups", "group", "vehicle", "price", "direction1", "change1", "direction2", "change2", "finalprice"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "stripped_studentAnswer:\n match_regex(\"\u00a3?(.*)\",studentAnswer)[1]\n\nstudentNumber (The student's answer, parsed as a number):\n if(settings[\"allowFractions\"],\n parsedecimal_or_fraction(stripped_studentAnswer,settings[\"notationStyles\"])\n ,\n parsedecimal(stripped_studentAnswer,settings[\"notationStyles\"])\n )", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The value of a {vehicle} is initially {currency(price,\"£\",\".\")}. If the value {direction1} by {change1}%, then {direction2} by {change2}%, what is the final value?

", "minValue": "finalprice", "maxValue": "finalprice", "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"}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}